code: public void setParmsToDirectBuffer() {
  
          if (oByteBuffer.isDirect()) {
              this.oWsBBDirect = this.oByteBuffer;
              return;
          }
  
          if (oWsBBDirect == null) {
              this.oWsBBDirect = ByteBuffer.allocateDirect(oByteBuffer.capacity());
          }
  
          // set the position and limit
          this.oWsBBDirect.limit(oByteBuffer.limit());
          this.oWsBBDirect.position(oByteBuffer.position());
      }
docs: Copy the buffer parameters from the indirect to the backing direct buffer,
  if necessary.