/**
  * Queries the underlying backend policies.
  *
  * @param context The request context.
  * @param request The query request to execute on the backend policies.
  * @param resultHandler The handler for results.
  * @return A promise contain the {@code QueryResult} and list of underlying policies or a {@code
  *     ResourceException} if the query failed.
  */
 public Promise<QueryResult, ResourceException> queryPolicies(
     ServerContext context, QueryRequest request, QueryResultHandler resultHandler) {
   return policyResource.handleQuery(context, request, resultHandler);
 }
 /**
  * Queries the underlying backend policies.
  *
  * @param context The request context.
  * @param request The query request to execute on the backend policies.
  * @return A promise contain the {@code QueryResult} and list of underlying policies or a {@code
  *     ResourceException} if the query failed.
  */
 public Promise<Pair<QueryResult, List<Resource>>, ResourceException> queryPolicies(
     ServerContext context, QueryRequest request) {
   return policyResource.handleQuery(context, request);
 }