code: public static void reproject( CoordinateReferenceSystem from, CoordinateReferenceSystem to, Object[] geometries )
              throws Exception {
          MathTransform mathTransform = CRS.findMathTransform(from, to);
  
          for( int i = 0; i < geometries.length; i++ ) {
              geometries[i] = JTS.transform((Geometry) geometries[i], mathTransform);
          }
      }
docs: Reproject a set of geometries
  
  @param from       the starting crs
  @param to         the destination crs
  @param geometries the array of geometries, wrapped into an Object array
  
  @throws Exception