@Override public boolean readProperties(AppPropertyContext context, Resource resource) { String filename = resource.getFilename(); if(Strings.endsWithIgnoreCase(filename, ".yaml") || Strings.endsWithIgnoreCase(filename,".yml")) { String content = resource.getContent(); if(Strings.isEmpty(content)) { return true; } Map<String, Object> map = YAML.parse(content).asMap(); if(map.isEmpty()) { return true; } Map<String, String> props = Maps.toProperties(map); props.forEach((key, value) -> putProperty(context, resource, key, value)); return true; } return false; }