@Override public synchronized void start(final StartContext context) throws StartException { // XTS expects the TCCL to be set to something that will locate the XTS service implementation classes. final ClassLoader loader = TxBridgeInboundRecoveryService.class.getClassLoader(); WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(loader); try { InboundBridgeRecoveryManager service = new InboundBridgeRecoveryManager(); try { service.start(); } catch (Exception e) { throw XtsAsLogger.ROOT_LOGGER.txBridgeInboundRecoveryServiceFailedToStart(); } inboundBridgeRecoveryManager = service; } finally { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged((ClassLoader) null); } }