String type = attrs.getValue("structureRef");
if (type == null || type.trim().length() == 0) {
type = "java.lang.Object";
}
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;