101102103104105106107108
return null; } else if (Geometry.class.isAssignableFrom(obj.getClass())) { Geometry geom = (Geometry) obj; return (Geometry) geom.clone(); } else { throw new LayerException(ExceptionCode.PROPERTY_IS_NOT_GEOMETRY, getGeometryAttributeName()); } }