code: public static Geometry setSRID(Geometry geometry, Integer srid) throws IllegalArgumentException {
          if (geometry == null) {
              return null;
          }
          if (srid == null) {
              throw new IllegalArgumentException("The SRID code cannot be null.");
          }
          Geometry geom = geometry.copy();
          geom.setSRID(srid);
          return geom;
      }
docs: Set a new SRID to the geometry
  @param geometry
  @param srid
  @return
  @throws IllegalArgumentException