// axis order used will be NORTH / EAST
ds.setAxisOrder(WFSDataStore.AXIS_ORDER_COMPLIANT, WFSDataStore.AXIS_ORDER_NORTH_EAST);
FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
Set<FeatureId> fids = new HashSet<FeatureId>();
fids.add(new FeatureIdImpl("comuni11.2671"));
Query query = new Query(typeName, ff.bbox("the_geom", 4623055.0, 815134.0, 4629904.0, 820740.0, "EPSG:3857"));
SimpleFeatureSource source = ds.getFeatureSource(typeName);
source.getFeatures(query).features();
BBOX filter = (BBOX)wfs.getRequest().getFilter();