code: public static Geometry toGeometry(String gmlFile, int srid) throws SAXException, IOException, ParserConfigurationException {
          if (gmlFile == null) {
              return null;
          }
          if (gf == null) {
              gf = new GeometryFactory(new PrecisionModel(), srid);
          }
          GMLReader gMLReader = new GMLReader();
          return gMLReader.read(gmlFile, gf);
      }
docs: Read the GML representation with a specified SRID
  
  @param gmlFile
  @param srid
  @return
  @throws org.xml.sax.SAXException
  @throws java.io.IOException
  @throws javax.xml.parsers.ParserConfigurationException