CoordinateReferenceSystem wgs84 = CRS.decode("EPSG:4326");
ReferencedEnvelope envWgs84 = new ReferencedEnvelope(1, 3, 5, 7, wgs84);
ReferencedEnvelope envUTM31N = envWgs84.transform(utm31n, true);
StyleBuilder sb = new StyleBuilder();
Symbolizer ps = sb.createPointSymbolizer();
Style style = sb.createStyle(ps);
Rule rule = style.featureTypeStyles().get(0).rules().get(0);
rule.setFilter(ff.bbox("geom", envUTM31N.getMinX(), envUTM31N.getMinY(), envUTM31N.getMaxX(), envUTM31N.getMaxY(), "EPSG:32631"));
// force EPSG axis order interpretation