void connectionClosed(BrokerSideConnection con) {
   LOGGER.log(Level.SEVERE, "connectionClosed {0}", con);
   connections.remove(con.getConnectionId());
   if (con.getClientId() != null) {
     workersConnections.remove(
         con.getClientId()); // to be remove only if the connection is the current connection
   }
 }
 @Override
 public BrokerSideConnection createConnection(Channel channel) {
   BrokerSideConnection connection = new BrokerSideConnection();
   connection.setBroker(broker);
   connection.setRequireAuthentication(broker.getConfiguration().isRequireAuthentication());
   connection.setChannel(channel);
   channel.setMessagesReceiver(connection);
   connections.put(connection.getConnectionId(), connection);
   return connection;
 }
 void connectionAccepted(BrokerSideConnection con) {
   LOGGER.log(Level.SEVERE, "connectionAccepted {0}", con);
   workersConnections.put(con.getClientId(), con);
 }