if (geometryNode.getImplementationType() == NodeValue.PERSISTENT_NODE)
//Get the geometry from the index if available
EPSG4326_geometry = indexWorker.getGeometryForNode(context.getBroker(), (NodeProxy)geometryNode, true);
if (EPSG4326_geometry == null) {
String sourceCRS = ((Element)geometryNode.getNode()).getAttribute("srsName").trim();
Geometry geometry = indexWorker.streamNodeToGeometry(context, geometryNode);
EPSG4326_geometry = indexWorker.transformGeometry(geometry, sourceCRS, "EPSG:4326");
}
if (EPSG4326_geometry == null) {
logger.error("Unable to get a geometry from the node");
throw new XPathException("Unable to get a geometry from the node");