Kyero/src/main/java/org/openestate/io/kyero/KyeroDocument.java
@Override
    public Root toObject() throws JAXBException {
        this.upgradeToLatestVersion();
        return (Root) KyeroUtils.createUnmarshaller().unmarshal(this.getDocument());
    }
@Override
    public Root toObject() throws JAXBException {
        this.upgradeToLatestVersion();
        return (Root) KyeroUtils.createUnmarshaller().unmarshal(this.getDocument());
    }
Creates a {@link Root} object from the contained {@link Document}.

@return created object, that represents the &lt;root&gt; root element
@throws JAXBException if a problem with JAXB occurred