ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID);  log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(remotingClientSessionID)); return e;
Map endpoints = (Map)jmsClients.get(jmsClientId);  if (endpoints != null) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)endpoints.remove(remotingClientSessionID);  log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(remotingClientSessionID));  if (endpoints.isEmpty()) { jmsClients.remove(jmsClientId); }  sessions.remove(remotingClientSessionID);  return e; } return null;
   public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID)   {      ServerConnectionEndpoint e =         (ServerConnectionEndpoint)connections.remove(remotingClientSessionID);      log.debug("unregistered connection " + e + " with remoting session ID " +                Util.guidToString(remotingClientSessionID));      return e;   }