The unmarshal method uses JAXBContext to unmarshal the XML data, when the root element is globally declared.
When the root element is not declared globally, the application assists the unmarshaller by application-provided mapping using declaredType parameters.