XmlResourceProcessor parser = new XmlResourceProcessor(getClassResolver(), errorHandler);
RegistryInfrastructureConstructor cons = new RegistryInfrastructureConstructor(
errorHandler, LOG, assembly);
ModuleDescriptor md = parser.processResource(getResource("Privates.xml"));
cons.addModuleDescriptor(md);
md = parser.processResource(getResource("ContributePrivate.xml"));
ContributionDescriptor cd = (ContributionDescriptor) md.getContributions().get(0);
ImplementationDescriptor id = (ImplementationDescriptor) md.getImplementations().get(0);
InterceptorDescriptor itd = (InterceptorDescriptor) id.getInterceptors().get(0);
cons.addModuleDescriptor(md);