code: private static byte[] bufferToArray(final ByteBuffer body) {
      if (body.position() > 0) {
        body.flip();
      }
      final int length = body.limit();
      final byte[] bytes = new byte[length];
      System.arraycopy(body.array(), 0, bytes, 0, length);
      return bytes;
    }
docs: Answer a {@code byte[]} from {@code body} bytes.
  @param body the ByteBuffer
  @return String