private InputStream findOrBuild(String identification,Map<String,String> properties) { Optional<InputStream> inputStream = classpath("/" + identification); if (!inputStream.isPresent()) { inputStream = file(System.getProperty(identification, build(properties))); } return inputStream.get(); }