channel.connect(Config.getStringProperty("CACHE_JGROUPS_GROUP_NAME","dotCMSCluster"));
channel.setOpt(JChannel.LOCAL, false);
useJgroups = true;
channel.send(new Message(null, null, TEST_MESSAGE));
Address channelAddress = channel.getAddress();
PhysicalAddress physicalAddr = (PhysicalAddress)channel.downcall(new Event(Event.GET_PHYSICAL_ADDRESS, channelAddress));
String[] addrParts = physicalAddr.toString().split(":");
String usedPort = addrParts[addrParts.length-1];
localServer.setCachePort(Integer.parseInt(usedPort));
serverAPI.updateServer(localServer);