/**
* Creates an composite component with the given name
*/
public static ModuleComponent createCompositeComponent(String name) throws ConfigurationLoadException {
ModuleComponent sc = systemFactory.createModuleComponent();
Module impl = systemFactory.createModule();
impl.setName(name);
//impl.setImplementationClass(CompositeContextImpl.class);
sc.setImplementation(impl);
impl.setImplementationClass(CompositeContextImpl.class);
impl.setComponentType(getCompositeComponentType());
Service s = systemFactory.createService();
JavaServiceContract ji = systemFactory.createJavaServiceContract();
s.setServiceContract(ji);
ji.setScope(Scope.AGGREGATE);
// impl.setComponentType(systemFactory.createComponentType());
impl.getComponentType().getServices().add(s);
sc.setName(name);
sc.setImplementation(impl);
return sc;
}