Source:
QueryResponse query( QueryRequest queryRequest, FederationStrategy strategy, boolean overrideFanoutRename, boolean fanoutEnabled) throws UnsupportedQueryException, FederationException { FederationStrategy fedStrategy = strategy; QueryResponse queryResponse; queryRequest = setFlagsOnRequest(queryRequest); try { queryRequest = validateQueryRequest(queryRequest); queryRequest = getFanoutQuery(queryRequest, fanoutEnabled); queryRequest = preProcessPreAuthorizationPlugins(queryRequest); queryRequest = populateQueryRequestPolicyMap(queryRequest); queryRequest = processPreQueryAccessPlugins(queryRequest); queryRequest = processPreQueryPlugins(queryRequest); queryRequest = validateQueryRequest(queryRequest); if (fedStrategy == null) { if (frameworkProperties.getFederationStrategy() == null) { throw new FederationException( "No Federation Strategies exist. Cannot execute federated query."); } else { LOGGER.debug( "FederationStrategy was not specified, using default strategy: " + frameworkProperties.getFederationStrategy().getClass()); fedStrategy = frameworkProperties.getFederationStrategy(); } } queryResponse = doQuery(queryRequest, fedStrategy); queryResponse.getProperties().put("actualResultSize", queryResponse.getResults().size()); LOGGER.debug("BeforePostQueryFilter result size: {}", queryResponse.getResults().size()); queryResponse = injectAttributes(queryResponse); queryResponse = validateFixQueryResponse(queryResponse, overrideFanoutRename, fanoutEnabled); queryResponse = postProcessPreAuthorizationPlugins(queryResponse); queryResponse = populateQueryResponsePolicyMap(queryResponse); queryResponse = processPostQueryAccessPlugins(queryResponse); queryResponse = processPostQueryPlugins(queryResponse); LOGGER.debug("AfterPostQueryFilter result size: {}", queryResponse.getResults().size()); LOGGER.debug("Total Hit count: {}", queryResponse.getHits()); } catch (RuntimeException re) { throw new UnsupportedQueryException("Exception during runtime while performing query", re); } return queryResponse; }

Target:
QueryResponse query( QueryRequest queryRequest, FederationStrategy strategy, boolean overrideFanoutRename, boolean fanoutEnabled) throws UnsupportedQueryException, FederationException { FederationStrategy fedStrategy = strategy; QueryResponse queryResponse; queryRequest = setFlagsOnRequest(queryRequest); try { queryRequest = validateQueryRequest(queryRequest); queryRequest = getFanoutQuery(queryRequest, fanoutEnabled); queryRequest = preProcessPreAuthorizationPlugins(queryRequest); queryRequest = populateQueryRequestPolicyMap(queryRequest); queryRequest = processPreQueryAccessPlugins(queryRequest); queryRequest = processPreQueryPlugins(queryRequest); queryRequest = validateQueryRequest(queryRequest); if (fedStrategy == null) { if (frameworkProperties.getFederationStrategy() == null) { throw new FederationException( "No Federation Strategies exist. Cannot execute federated query."); } else { LOGGER.debug( "FederationStrategy was not specified, using default strategy: " + frameworkProperties.getFederationStrategy().getClass()); fedStrategy = frameworkProperties.getFederationStrategy(); } } queryResponse = doQuery(queryRequest, fedStrategy); queryResponse.getProperties().put("actualResultSize", queryResponse.getResults().size()); LOGGER.trace("BeforePostQueryFilter result size: {}", queryResponse.getResults().size()); queryResponse = injectAttributes(queryResponse); queryResponse = validateFixQueryResponse(queryResponse, overrideFanoutRename, fanoutEnabled); queryResponse = postProcessPreAuthorizationPlugins(queryResponse); queryResponse = populateQueryResponsePolicyMap(queryResponse); queryResponse = processPostQueryAccessPlugins(queryResponse); queryResponse = processPostQueryPlugins(queryResponse); LOGGER.trace("AfterPostQueryFilter result size: {}", queryResponse.getResults().size()); LOGGER.trace("Total Hit count: {}", queryResponse.getHits()); } catch (RuntimeException re) { throw new UnsupportedQueryException("Exception during runtime while performing query", re); } return queryResponse; }