code: private void initVersion() {
  
          // initialize version information with static defaults
          m_versionNumber = DEFAULT_VERSION_NUMBER;
          m_versionId = DEFAULT_VERSION_ID;
          m_version = "OpenCms/" + m_versionNumber;
          m_buildInfo = Collections.emptyMap();
          // read the version-informations from properties
          Properties props = new Properties();
          try {
              props.load(this.getClass().getClassLoader().getResourceAsStream("org/opencms/main/version.properties"));
          } catch (Throwable t) {
              // no properties found - we just use the defaults
              return;
          }
          // initialize OpenCms version information from the property values
          m_versionNumber = props.getProperty("version.number", DEFAULT_VERSION_NUMBER);
          m_versionId = props.getProperty("version.id", DEFAULT_VERSION_ID);
          m_version = "OpenCms/" + m_versionNumber;
          m_buildInfo = new TreeMap<String, BuildInfoItem>();
  
          // iterate the properties and generate the build information from the entries
          for (String key : props.stringPropertyNames()) {
              if (!"version.number".equals(key) && !"version.id".equals(key) && !key.startsWith("nicename")) {
                  String value = props.getProperty(key);
                  String nicename = props.getProperty("nicename." + key, key);
                  m_buildInfo.put(key, new BuildInfoItem(value, nicename, key));
              }
          }
          // make the map unmodifiable
          m_buildInfo = Collections.unmodifiableMap(m_buildInfo);
      }
docs: Initializes the version for this OpenCms, will be called by
  {@link OpenCmsServlet} or {@link CmsShell} upon system startup.<p>