public void loadComposite(XMLStreamReader reader, Composite composite, LoaderContext loaderContext) throws XMLStreamException, ConfigurationLoadException {
composite.setName(reader.getAttributeValue(null, "name"));
while (true) {
switch (reader.next()) {
case START_ELEMENT:
AssemblyObject o = registry.load(reader, loaderContext);
if (o instanceof EntryPoint) {
composite.getEntryPoints().add((EntryPoint) o);
} else if (o instanceof ExternalService) {
composite.getExternalServices().add((ExternalService) o);
} else if (o instanceof Component) {