public <T> T unmarshal(Class<T> clz, File file) throws JAXBException, IOException, XMLStreamException, SAXException {
    return unmarshal(clz, file, false);
  }
Unmarshal a file to it's corresponding object type.

@param clz   class of the object representation
@param file  file to unmarshal

@return object representation of the specified file
@throws JAXBException if unable to unmarshal the file
@throws XMLStreamException
@throws SAXException
@throws FileNotFoundException
ambari-server/src/main/java/org/apache/ambari/server/stack/ModuleFileUnmarshaller.java