GeometryFactory gf = new GeometryFactory();
PackedCoordinateSequenceFactory sf = new PackedCoordinateSequenceFactory();
LinearRing shell = gf.createLinearRing(sf.create(new double[] { 2, -1, 2, 5, 4, 5, 4, -1,
2, -1 }, 2));
Polygon polygon = gf.createPolygon(shell, null);
Contains cs = ff.contains(ff.literal(polygon), ff.property(aname("geom")));
SimpleFeatureType roadSchema = dataStore.getSchema("road");
originalSchema = dataStore.getDatabaseSchema();
dataStore.setDatabaseSchema("schema");
dialect.handleSelectHints(sql1, roadSchema, new Query("road", cs));