// create new server
StatefulServer server = new StatefulServer(remoteNodeConfiguration, serviceName, socketAddress);
try {
if (immediateConnect) {
// server connections get connected immediately
server.immediateConnect();
}
} catch (Exception ex) {
LOGGER.error("immediate connect", ex);
HasFaultResponseException communicationException = new SCMPCommunicationException(SCMPError.CONNECTION_EXCEPTION,
"immediate connect to server=" + serverKey);