NameContext nc = ((GenericService) pRepository).getNameContext();
NameContextBindingEvent bindingEvent = new NameContextBindingEvent(pRepository
.getName()+"-Shadow", newRepository, pRepository.getNameContext());
newRepository.nameContextElementBound(bindingEvent);
*/
NameContext nc = pRepository.getNameContext();
nc.putElement(pRepository.getName() + "-Shadow", newRepository);
if (pStart) {
startRepository(pRepository, c, n, newRepository);
}
return newRepository;