Source:
public void runMultipleQueries(final List<VdcQueryType> queryTypeList, final List<VdcQueryParametersBase> queryParamsList, final IFrontendMultipleQueryAsyncCallback callback, final String context) { VdcOperationCallbackList<VdcOperation<VdcQueryType, VdcQueryParametersBase>, List<VdcQueryReturnValue>> multiCallback = new VdcOperationCallbackList<VdcOperation<VdcQueryType, VdcQueryParametersBase>, List<VdcQueryReturnValue>>() { @Override public void onSuccess(final List<VdcOperation<VdcQueryType, VdcQueryParametersBase>> operationList, final List<VdcQueryReturnValue> resultObject) { logger.finer("Succesful returned result from RunMultipleQueries!"); FrontendMultipleQueryAsyncResult f = new FrontendMultipleQueryAsyncResult(queryTypeList, queryParamsList, resultObject); callback.executed(f); raiseQueryCompleteEvent(queryTypeList, context); } @Override public void onFailure(final List<VdcOperation<VdcQueryType, VdcQueryParametersBase>> operationList, final Throwable caught) { try { if (ignoreFailure(caught)) { return; } logger.log(Level.SEVERE, "Failed to execute RunPublicQuery: " + caught, caught); FrontendMultipleQueryAsyncResult f = new FrontendMultipleQueryAsyncResult(queryTypeList, queryParamsList, null); failureEventHandler(caught); callback.executed(f); } finally { raiseQueryCompleteEvent(queryTypeList, context); } } }; List<VdcOperation<?, ?>> operationList = new ArrayList<VdcOperation<?, ?>>(); for (int i = 0; i < queryTypeList.size(); i++) { VdcQueryParametersBase parameters = queryParamsList.get(i); parameters.setRefresh(false); initQueryParamsFilter(parameters); operationList.add(new VdcOperation<VdcQueryType, VdcQueryParametersBase>(queryTypeList.get(i), parameters, multiCallback)); } raiseQueryStartedEvent(queryTypeList, context); getInstance().getOperationManager().addOperationList(operationList); }

Target:
public void runMultipleQueries(final List<VdcQueryType> queryTypeList, final List<VdcQueryParametersBase> queryParamsList, final IFrontendMultipleQueryAsyncCallback callback, final String context) { VdcOperationCallbackList<VdcOperation<VdcQueryType, VdcQueryParametersBase>, List<VdcQueryReturnValue>> multiCallback = new VdcOperationCallbackList<VdcOperation<VdcQueryType, VdcQueryParametersBase>, List<VdcQueryReturnValue>>() { @Override public void onSuccess(final List<VdcOperation<VdcQueryType, VdcQueryParametersBase>> operationList, final List<VdcQueryReturnValue> resultObject) { logger.finer("Succesful returned result from runMultipleQueries!"); FrontendMultipleQueryAsyncResult f = new FrontendMultipleQueryAsyncResult(queryTypeList, queryParamsList, resultObject); callback.executed(f); raiseQueryCompleteEvent(queryTypeList, context); } @Override public void onFailure(final List<VdcOperation<VdcQueryType, VdcQueryParametersBase>> operationList, final Throwable caught) { try { if (ignoreFailure(caught)) { return; } logger.log(Level.SEVERE, "Failed to execute runMultipleQueries: " + caught, caught); FrontendMultipleQueryAsyncResult f = new FrontendMultipleQueryAsyncResult(queryTypeList, queryParamsList, null); failureEventHandler(caught); callback.executed(f); } finally { raiseQueryCompleteEvent(queryTypeList, context); } } }; List<VdcOperation<?, ?>> operationList = new ArrayList<VdcOperation<?, ?>>(); for (int i = 0; i < queryTypeList.size(); i++) { VdcQueryParametersBase parameters = queryParamsList.get(i); parameters.setRefresh(false); initQueryParamsFilter(parameters); operationList.add(new VdcOperation<VdcQueryType, VdcQueryParametersBase>(queryTypeList.get(i), parameters, multiCallback)); } raiseQueryStartedEvent(queryTypeList, context); getInstance().getOperationManager().addOperationList(operationList); }