OpenImmo/src/main/java/org/openestate/io/openimmo/OpenImmoFeedbackDocument.java
public static OpenImmoFeedbackDocument newDocument(OpenimmoFeedback feedback) throws ParserConfigurationException, JAXBException {
        if (StringUtils.isBlank(feedback.getVersion()))
            feedback.setVersion(OpenImmoUtils.VERSION.toReadableVersion());

        Document document = XmlUtils.newDocument();
        OpenImmoUtils.createMarshaller("UTF-8", true).marshal(feedback, document);
        return new OpenImmoFeedbackDocument(document);
    }
public static OpenImmoFeedbackDocument newDocument(OpenimmoFeedback feedback) throws ParserConfigurationException, JAXBException {
        if (StringUtils.isBlank(feedback.getVersion()))
            feedback.setVersion(OpenImmoUtils.VERSION.toReadableVersion());

        Document document = XmlUtils.newDocument();
        OpenImmoUtils.createMarshaller("UTF-8", true).marshal(feedback, document);
        return new OpenImmoFeedbackDocument(document);
    }
Creates a {@link OpenImmoFeedbackDocument} from a
{@link OpenimmoFeedback} object.

@param feedback Java object, that represents the &lt;openimmo_feedback&gt; root element
@return created document
@throws ParserConfigurationException if the parser is not properly configured
@throws JAXBException                if a problem with JAXB occurred