Storage (Element dataElement) { Storage.MapStorage storage = new Storage.MapStorage(); for (Element element : dataElement.getChildren(ITEM_TAG)) { storage.put(element.getAttributeValue(KEY_ATTR), element.getAttributeValue(VALUE_ATTR)); } return storage; }