AgentId proxyId = gpin.getProxyId();
OpenConnectionNot ocn = new OpenConnectionNot(false, heartBeat);
ocn.invoke(proxyId);
StandardConnectionContext cc = (StandardConnectionContext) ocn.getConnectionContext();
ProxyConnectionContext pcc = new ProxyConnectionContext(proxyId, cc.getQueue());
connections.put(new ConnectionKey(identity.getUserName(), cc.getKey()), pcc);
return cc.getKey();
}