docs: public JsMessage getSent(boolean copy) throws MessageCopyFailedException {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSent", copy);
  
      /* Now get the JsMessage to return */
      JsMessageImpl newMsg;
  
      /* If a copy is required, obtain one */
      if (copy) {
        newMsg = createNew();
  
        /* Reset the original's cached lengths as the content may be about to be  */
        /* completely changed by the producer.                                    */
        clearCachedLengths();
      }
  
      /* Otherwise we just return the original message. */
      else {
        newMsg = this;
      }
  
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getSent", newMsg);
      return newMsg;
    }