code: @SuppressWarnings("unchecked")
    public final Command optimiezeMergeBuffer(Command optimiezeCommand, final Queue writeQueue,
        final Queue<Command> executingCmds, int sendBufferSize) {
      if (log.isDebugEnabled()) {
        log.debug("Optimieze merge buffer:" + optimiezeCommand.toString());
      }
      if (this.optimiezeMergeBuffer
          && optimiezeCommand.getIoBuffer().remaining() < sendBufferSize - 24) {
        optimiezeCommand =
            this.mergeBuffer(optimiezeCommand, writeQueue, executingCmds, sendBufferSize);
      }
      return optimiezeCommand;
    }
docs: merge buffers to fit socket's send buffer size
  
  @param currentCommand
  @return
  @throws InterruptedException