public String getPackageVersion(String osFamily) {
    if (null == m_packageVersions) {
      m_packageVersions = new HashMap<>();

      for (Os os : repositoryInfo.getOses()) {
        m_packageVersions.put(os.getFamily(), os.getPackageVersion());
      }
    }

    return m_packageVersions.get(osFamily);
  }
Gets the package version for an OS family
@param osFamily  the os family
@return the package version, or {@code null} if not found
ambari-server/src/main/java/org/apache/ambari/server/state/repository/VersionDefinitionXml.java