code: private void setHighestID(String namespace, int id) throws IOException {
          logger.debug("Setting highest ID for {} to {}", namespace, id);
          m_highestID.put(namespace, new Integer(id));
          // write the new highest id in the database, too
          Connection conn = null;
          try {
              conn = m_connectionPool.getReadWriteConnection();
              SQLUtility.replaceInto(conn,
                                     "pidGen",
                                     new String[] {"namespace", "highestID"},
                                     new String[] {namespace, "" + id},
                                     "namespace",
                                     new boolean[] {false, true});
          } catch (SQLException sqle) {
              throw new IOException("Error setting highest id for "
                      + "namespace in db: " + sqle.getMessage());
          } finally {
              if (conn != null) {
                  m_connectionPool.free(conn);
              }
          }
      }
docs: Sets the highest id ever used for the given namespace.