return COMPONENT_TYPE;
}
public ComponentType load(XMLStreamReader reader, LoaderContext loaderContext) throws XMLStreamException, ConfigurationLoadException {
assert COMPONENT_TYPE.equals(reader.getName());
ComponentType componentType = factory.createComponentType();
while (true) {
switch (reader.next()) {
case START_ELEMENT:
AssemblyObject o = registry.load(reader, loaderContext);
if (o instanceof Service) {
componentType.getServices().add((Service) o);
} else if (o instanceof Reference) {
componentType.getReferences().add((Reference) o);
} else if (o instanceof Property) {
componentType.getProperties().add((Property) o);
}
break;
case END_ELEMENT:
return componentType;
}