this.endpointClassLoader = AccessController.doPrivileged(privilegedAction);
ClassLoader oldCl = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(this.endpointClassLoader);
this.endpoint = new SmartClientEndPointComponent();
this.endpoint.setPortNumber(SMART_ENDPOINT_PORT);
this.endpoint.setRegistryComponent(registryComponent);
this.endpoint.init();
this.endpoint.start();
this.endpoint2 = new SmartClientEndPointComponent();
this.endpoint2.setPortNumber(SMART2_ENDPOINT_PORT);
this.endpoint2.setRegistryComponent(registry2Component);
this.endpoint2.init();
this.endpoint2.start();
} finally {