boolean geometryPasses = false;
for (final ByteArrayId fieldId : geometryFieldIds) {
final Object geomObj = persistenceEncoding.getCommonData().getValue(
fieldId);
if ((geomObj != null) && (geomObj instanceof GeometryWrapper)) {
final GeometryWrapper geom = (GeometryWrapper) geomObj;
if (geometryPasses(geom.getGeometry())) {
geometryPasses = true;
break;
}
}
}