code: protected void validate(BasicMessageWithExtraData<REQ> envelope) {
          if (envelope.getBasicMessage().getResourceId() == null) {
              throw new IllegalArgumentException(
                      String.format("resourceId of a [%s] cannot be null", envelope.getClass().getName()));
          }
      }
docs: Checks if the {@code request} has {@code resourcePath} field set. Subclasses may want to add more {@code request}
  validations in their overrides.
  
  @param envelope the request to validate