public static VersionDefinitionXml load(URL url) throws Exception {

    InputStream stream = null;
    try {
      stream = url.openStream();
      return load(stream);
    } finally {
      IOUtils.closeQuietly(stream);
    }
  }
Parses a URL for a definition XML file into the object graph.
@param   url the URL to load.  Can be a file URL reference also.
@return  the definition
ambari-server/src/main/java/org/apache/ambari/server/state/repository/VersionDefinitionXml.java