} catch (FactoryException e) {
throw new RuntimeException("Failed to find transform.", e);
}
com.vividsolutions.jts.geom.Geometry transGeom;
try {
transGeom = gt.transform((com.vividsolutions.jts.geom.Geometry) this.unwrap());
} catch (TransformException e) {
throw new RuntimeException("Failed to transform.", e);
}
Geometry transformed = (Geometry) GeometryWrapper.wrap(getParentScope(), transGeom);
transformed.projection = toProj;