});
}
public void search(String crs, final Layer<?> layer, SearchCriterion[] criteria, final FeatureCallback callback) {
if (layer instanceof FeaturesSupported) {
FeaturesSupported fs = (FeaturesSupported) layer;
SearchFeatureRequest request = new SearchFeatureRequest();
request.setBooleanOperator("OR");
request.setCriteria(criteria);
request.setMax(resultSize);
request.setLayerId(layer.getServerLayerId());
request.setCrs(crs);
request.setFilter(fs.getFilter());
request.setFeatureIncludes(11);
Command command = new Command(SearchFeatureRequest.COMMAND);
command.setCommandRequest(request);
commandService.execute(command, new CommandCallback() {