String query = OperationUtil.getRequiredParameter(operation, ParamsProperty.QUERY);
int index = OperationUtil.getOptionalParameter(operation, ParamsProperty.INDEX, 0);
int numResults = OperationUtil.getOptionalParameter(
operation, ParamsProperty.NUM_RESULTS, DEFAULT_NUMBER_SEARCH_RESULTS);
SearchResult result = search(participant, query, index, numResults);
Map<ParamsProperty, Object> data =
ImmutableMap.<ParamsProperty, Object> of(ParamsProperty.SEARCH_RESULTS, result);
context.constructResponse(operation, data);
}