docs: protected void readLength() throws IOException {
          int len = incomingBuffer.getInt();
          if(LOGGER.isTraceEnabled()){
              LOGGER.trace("Read length in client - " + len);
          }
          if (len < 0 || len >= DirectoryConnection.packetLen) {
              throw new IOException("Packet len" + len + " is out of range!");
          }
          incomingBuffer = ByteBuffer.allocate(len);
      }