if (port1 != -1){
port = port1;
}
Client client = new Client(address, port, callHandler);
ICartagoNodeRemote env = (ICartagoNodeRemote) client.getGlobal(ICartagoNodeRemote.class);
NodeId nodeId = env.getNodeId();
client.close();
return nodeId;
} catch (IOException ex) {
ex.printStackTrace();
throw new CartagoInfrastructureLayerException();