// attributes
final TreeMap<String, String> sortedAttributes = Maps.newTreeMap();
sortedAttributes.putAll(item.getRepositoryItemAttributes().asMap());
for (Map.Entry<String, String> entry : sortedAttributes.entrySet()) {
result.addAttribute(entry.toString());
}
// sources
if (item instanceof StorageCompositeItem) {
StorageCompositeItem composite = (StorageCompositeItem) item;