code: public static int getValidSRID(Connection connection, File prjFile) throws SQLException, IOException {
          int srid = getSRID(prjFile);
          if(!isSRIDValid(srid, connection)){
              srid = 0;
          }
          return srid;
      }
docs: Get a valid SRID value from a prj file.
  If the the prj file
  - is null,
  - doesn't contain a valid srid code,
  - is empty     *
  then a default srid equals to 0 is added.
  
  @param connection
  @param prjFile
  @return
  @throws SQLException
  @throws IOException