public VersionDefinitionXml getRepositoryXml() throws Exception {
    if (null == versionXsd) {
      return null;
    }

    if (null == versionDefinition) {
      versionDefinition = VersionDefinitionXml.load(getVersionXml());
    }

    return versionDefinition;
  }
Parse the version XML into its object representation.  This causes the XML to be lazy-loaded
from storage, and will only be parsed once per request.
@return {@code null} if the XSD (from the XML) is not available.
@throws Exception
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RepositoryVersionEntity.java