// Filter Capabilities
// this part is not optional, the schema has min = 0, so we don't check for the sections
final FilterFactory2 ffFactory = CommonFactoryFinder.getFilterFactory2(GeoTools.getDefaultHints());
// - Spatial Capabilities
//SpatialCapabilities spatialCapabilities = ffFactory.spatialCapabilities(geometryOperands, spatialOperands);
SpatialCapabilities spatialCapabilities = new CSWSpatialCapabilities();
// - Scalar Capabilities
Operator[] operators = new Operator[] { ffFactory.operator("EqualTo"),
ffFactory.operator("Like"), ffFactory.operator("LessThan"),
ffFactory.operator("GreaterThan"), ffFactory.operator("LessThanEqualTo"),