TaggedResource taggedResource = entry.getValue();
if (taggedResource.resource.exists()) {
if (taggedResource.tags.isEmpty()) {
HashMap<String, String> property = new HashMap<String, String>();
property.put(entry.getKey(), readJson(taggedResource.resource));
properties.add(new TaggedPropertySet(property, JsonStore.class));
} else {
for (String tag : taggedResource.tags) {
HashMap<String, String> property = new HashMap<String, String>();
property.put(entry.getKey(), readJson(taggedResource.resource));
properties.add(new TaggedPropertySet(tag, property, JsonStore.class));
}
}
}
}
return properties;