public void sendMessageToClient(AbstractMessage message) {
   try {
     Container.logger().debug(">>> " + message);
     Buffer b1 = encoder.enc(message);
     sendMessageToClient(b1);
   } catch (Throwable e) {
     Container.logger().error(e.getMessage(), e);
   }
 }
 @Override
 public void onError(Throwable e) {
   String clientInfo = getClientInfo();
   Container.logger().error(clientInfo + ", " + e.getMessage(), e);
   //        if(e instanceof CorruptedFrameException) {
   closeConnection();
   //        }
 }