File tempFile = File.createTempFile("metadata", "");
ItemsMetadata itemsMetadata = new ItemsMetadata(tempFile);
for (int i = 0; i < 10; i++) {
Map<String, String> md1 = itemsMetadata.loadMetadata("o" + i);
md1.put("differentAtt", "value" + i);
md1.put("sameAtt", "value");
}
itemsMetadata.save();