parser.startElementBuilder(localName, attrs);
String id = attrs.getValue("id");
String type = attrs.getValue("structureRef");
ProcessBuildData buildData = (ProcessBuildData) parser.getData();
Map<String, ItemDefinition> itemDefinitions = (Map<String, ItemDefinition>)
buildData.getMetaData("ItemDefinitions");
if (itemDefinitions == null) {
itemDefinitions = new HashMap<String, ItemDefinition>();
buildData.setMetaData("ItemDefinitions", itemDefinitions);
}
ItemDefinition itemDefinition = new ItemDefinition(id);
itemDefinition.setStructureRef(type);
itemDefinitions.put(id, itemDefinition);
return itemDefinition;