code: public QueryContext with( Schemata schemata ) {
          CheckArg.isNotNull(schemata, "schemata");
          return new QueryContext(context, repositoryCache, workspaceNames, overriddenNodeCachesByWorkspaceName, schemata,
                                  indexDefns, nodeTypes, bufferManager, hints, problems, variables);
      }
docs: Obtain a copy of this context, except that the copy uses the supplied schemata.
  
  @param schemata the schemata that should be used in the new context
  @return the new context; never null
  @throws IllegalArgumentException if the schemata reference is null