code: public <T extends XMLReadHandle> T exportQueryDefinition(T handle) {
      return Utilities.exportToHandle(this.queryPayload, handle);
    }
docs: Exports the embedded query definitions and options to a handle
  
  @param handle
  The handle to use for export.
  @param <T> the type of XMLReadHandle to return
  @return The handle, with a combined query and options included as XML.