// bind TransactionSynchronizationRegistry
TransactionSynchronizationRegistry synchronizationRegistry = SystemInstance.get().getComponent(TransactionSynchronizationRegistry.class);
comp.rebind("TransactionSynchronizationRegistry", synchronizationRegistry);
comp.rebind("ORB", new SystemComponentReference(ORB.class));
comp.rebind("HandleDelegate", new SystemComponentReference(HandleDelegate.class));
if (webContext != null) {
comp.rebind("BeanManager", webContext.getAppContext().getBeanManager());
} else if (contextInfo != null) {
comp.rebind("BeanManager", cs.getAppContext(contextInfo.appInfo.appId).getBeanManager());