code: protected SearchByLocationRequest getSearchByLocationRequest(VectorLayer layer) {
  		if (request instanceof SearchByLocationRequest) {
  			SearchByLocationRequest req = (SearchByLocationRequest) request;
  			SearchByLocationRequest clone = new SearchByLocationRequest();
  			clone.setBuffer(req.getBuffer());
  			clone.setCrs(req.getCrs());
  			clone.setFilter(req.getFilter());
  			clone.setFeatureIncludes(req.getFeatureIncludes());
  			clone.setLocation(req.getLocation());
  			clone.setQueryType(req.getQueryType());
  			clone.setRatio(req.getRatio());
  			clone.setSearchType(req.getSearchType());
  			// not bothering to include the other layers, we won't use the
  			// result anyway
  			clone.setLayerIds(new String[] { layer.getServerLayerId() });
  			return clone;
  		} else {
  			return null;
  		}
  	}
docs: ----------------------------------------------------------