final CoordinateReferenceSystem featureTypeCrs = featureTypeBounds
.getCoordinateReferenceSystem();
final CoordinateReferenceSystem queryCrs = query.getCoordinateSystem();
if (queryCrs != null && !CRS.equalsIgnoreMetadata(queryCrs, featureTypeCrs)) {
try {
featureTypeBounds = featureTypeBounds.transform(queryCrs, true);
} catch (TransformException e) {
LOGGER.log(Level.INFO, "Error transforming bounds for " + typeName, e);
featureTypeBounds = null;
} catch (FactoryException e) {
LOGGER.log(Level.INFO, "Error transforming bounds for " + typeName, e);