in src/main/java/org/apache/maven/hocon/HoconModelParser.java [50:62]
public Model parse(Source source, Map<String, ?> map) throws ModelParserException {
Config config;
if (source.getPath() != null) {
config = ConfigFactory.parseFile(source.getPath().toFile());
} else {
try (InputStream input = source.openStream()) {
config = ConfigFactory.parseReader(new InputStreamReader(input, StandardCharsets.UTF_8));
} catch (IOException e) {
throw new ModelParserException("Unable to parse: " + source.getLocation(), e);
}
}
return new HoconReader().parseModel(config.root());
}