String clientConnectionID = (String)client.getConfiguration().get(MetaDataConstants.CLIENT_CONNECTION_ID); if (clientConnectionID == null) { log.error("Can't find client connection id in meta-data for " + client); } else { if (t instanceof ClientDisconnectedException) {  if (log.isTraceEnabled()) { log.trace("Client " + client + " has disconnected"); } } else { log.error("Broken client connection " + clientConnectionID, t);  if (log.isTraceEnabled()) { log.trace("Clearing up server resources for this connection"); }  ServerConnectionEndpoint endpoint = (ServerConnectionEndpoint)connections.get(clientConnectionID);  if (endpoint == null) { log.error("Cannot find ServerConnectionEndpoint for client connection id " + clientConnectionID); } else { try { endpoint.close(); } catch (JMSException e) { log.error("Failed to close connection", e); } } } }
      public void handleConnectionException(Throwable t, Client client)      {               }