GetProxyIdNot gpin = new GetProxyIdNot(identity, null);
gpin.invoke(AdminTopic.getDefault());
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);