docs: public ByteBuffer getData() {
          if (this.buffer == null) {
              throw new IllegalStateException("ByteBuffer must have data before it is ready for use.");
          }
          final ByteBuffer copy = CausticUtil.createByteBuffer(buffer.capacity());
          buffer.rewind();
          copy.put(buffer);
          copy.flip();
          return copy;
      }