code: public static Polygon makeEnvelope(double xmin, double ymin, double xmax, double ymax, int srid) {
          Polygon geom = makeEnvelope(xmin, ymin, xmax, ymax);
          geom.setSRID(srid);
          return geom;
      }
docs: Creates a rectangular Polygon formed from the minima and maxima by the
  given shell.
  The user can set a srid.
  @param xmin X min
  @param ymin Y min
  @param xmax X max
  @param ymax Y max
  @param srid SRID
  @return Envelope as a POLYGON