public static VersionDefinitionXml load(String xml) throws Exception {
    return load(new ByteArrayInputStream(xml.getBytes("UTF-8")));
  }
Parses an xml string.  Used when the xml is in the database.
@param   xml the xml string
@return  the definition
ambari-server/src/main/java/org/apache/ambari/server/state/repository/VersionDefinitionXml.java