Using the countries.shp execute the next CQL query: CONTAINS (the_geom, POINT (20 20))
It doesn't select any feature. If you try to execute any other CQL query, it doesn't matter if it is a spatial relationship query or a text query like "FID like 'cou%'", they won't work.
Those queries worked on udig-m6 and m7, I have read the code and is the same for all the versions, so the problem relies on the datastore. I think the next code doesn't return the proper values:
final DefaultQuery query=new DefaultQuery(schema.getName().getLocalPart(), filter, Query.NO_NAMES );
FeatureCollection<SimpleFeatureType, SimpleFeature> features = source.getFeatures( query );