public abstract Object getResult () throws JAXBException, IllegalStateException

Obtains the unmarshalled result. This method can be called only after this handler receives the endDocument SAX event.

Returns:  always return a non-null valid object which was unmarshalled.

Exceptions:
IllegalStateException     if this method is called before this handler receives the endDocument event.
JAXBException     if there is any unmarshalling error. Note that the implementation is allowed to throw SAXException during the parsing when it finds an error.