docs: public boolean needUpdate() {
  
          String pool = "default";
  
          double currentVersion = 8.5;
          m_detectedVersion = 8.5;
  
          CmsSetupDb setupDb = new CmsSetupDb(null);
  
          try {
              setupDb.setConnection(
                  getDbDriver(pool),
                  getDbUrl(pool),
                  getDbParams(pool),
                  getDbUser(pool),
                  m_dbPools.get(pool).get("pwd"));
  
              if (!setupDb.hasTableOrColumn("CMS_USERS", "USER_OU")) {
                  m_detectedVersion = 6;
              } else if (!setupDb.hasTableOrColumn("CMS_ONLINE_URLNAME_MAPPINGS", null)) {
                  m_detectedVersion = 7;
              } else if (!setupDb.hasTableOrColumn("CMS_USER_PUBLISH_LIST", null)) {
                  m_detectedVersion = 8;
              }
          } finally {
              setupDb.closeConnection();
          }
  
          return currentVersion != m_detectedVersion;
      }