code: @Override
      public boolean isBodyAllowed() {
  
          if (super.isBodyAllowed()) {
  
              // sending a body with the response is not valid for a HEAD request
              if (getServiceContext().getRequestMethod().equals(MethodValues.HEAD)) {
                  return false;
              }
  
              // if that worked, then check the status code flag
              return this.myStatusCode.isBodyAllowed();
          }
  
          // no body allowed on this message
          return false;
      }
docs: Query whether or not a body is allowed to be present for this
  message. This is not whether a body is present, but rather only
  whether it is allowed to be present.
  
  @return boolean (true if allowed)