configuration.setServerAddress(new InetSocketAddress(environment.getProcessControllerAddress(), environment.getProcessControllerPort().intValue()));
configuration.setBindAddress(new InetSocketAddress(environment.getHostControllerAddress(), environment.getHostControllerPort()));
final ThreadFactory threadFactory = new JBossThreadFactory(new ThreadGroup("ProcessControllerConnection-threads"), Boolean.FALSE, null, "%G - %t", null, null, AccessController.getContext());
configuration.setThreadFactory(threadFactory);
configuration.setSocketFactory(SocketFactory.getDefault());
client = ProcessControllerClient.connect(configuration, authCode, new ProcessMessageHandler() {
@Override
public void handleProcessAdded(final ProcessControllerClient client, final String processName) {
if (serverInventory == null){
throw MESSAGES.noServerInventory();
}