code: @Override
      public void setRequest(HttpRequestMessage msg) throws IllegalRequestObjectException {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.entry(tc, "setRequest: " + msg);
          }
  
          // null message isn't allowed
          if (null == msg) {
              throw new IllegalRequestObjectException("Illegal null message");
          }
  
          HttpRequestMessageImpl temp = null;
          try {
              temp = (HttpRequestMessageImpl) msg;
          } catch (ClassCastException cce) {
              // no FFDC required
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "Non msg impl passed to setRequest");
              }
              throw new IllegalRequestObjectException("Invalid message provided");
          }
          // possibly clean up any existing request object
          if (null != getMyRequest() && isRequestOwner()) {
              if (!getMyRequest().equals(temp)) {
                  getMyRequest().destroy();
              } else {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
                      Tr.event(tc, "Caller overlaying same message");
                  }
              }
          }
          // set the new object in place
          setMyRequest(temp);
          // 335554 : the message init() will overwrite the version based on config
          // and needs to be reset back to whatever we started with here.
          VersionValues version = temp.getVersionValue();
          getMyRequest().init(this);
          getMyRequest().setVersion(version);
          updatePersistence(getMyRequest());
          getResponseImpl().setHeaderChangeLimit(getMyRequest().getHeaderChangeLimit());
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.exit(tc, "setRequest");
          }
      }
docs: Set the request message in this service context.
  
  @param msg
  @throws IllegalRequestObjectException