request.setLayerFilters(getLayerFiltersForCriterion(criterion, mapWidget.getMapModel()));
request.setFeatureIncludes(GwtCommandDispatcher.getInstance().getLazyFeatureIncludesSelect());
GwtCommand commandRequest = new GwtCommand(FeatureSearchRequest.COMMAND);
commandRequest.setCommandRequest(request);
Deferred def = GwtCommandDispatcher.getInstance().execute(commandRequest, new CommandCallback() {
public void execute(CommandResponse commandResponse) {
if (commandResponse instanceof FeatureSearchResponse) {
FeatureSearchResponse response = (FeatureSearchResponse) commandResponse;
onFinished.execute(convertFromDto(response.getFeatureMap(),
mapWidget.getMapModel()));