FeatureSource<SimpleFeatureType, SimpleFeature> fSource;
fSource = (FeatureSource<SimpleFeatureType, SimpleFeature>) layer.getFeatureSource();
SimpleFeatureType schema = fSource.getSchema();
try {
Expression bboxExpression = fFac.createBBoxExpression(mapContext.getAreaOfInterest());
GeometryFilter bboxFilter = fFac.createGeometryFilter(FilterType.GEOMETRY_INTERSECTS);
bboxFilter.addLeftGeometry(fFac.createAttributeExpression(schema,
schema.getGeometryDescriptor().getName().getLocalPart()));
bboxFilter.addRightGeometry(bboxExpression);