OpenImmo/src/main/java/org/openestate/io/openimmo/OpenImmoUtils.java
public static OpenImmoDocument createDocument(Document doc) {
        if (OpenImmoTransferDocument.isReadable(doc))
            return new OpenImmoTransferDocument(doc);
        else if (OpenImmoFeedbackDocument.isReadable(doc))
            return new OpenImmoFeedbackDocument(doc);
        else
            return null;
    }
public static OpenImmoDocument createDocument(Document doc) {
        if (OpenImmoTransferDocument.isReadable(doc))
            return new OpenImmoTransferDocument(doc);
        else if (OpenImmoFeedbackDocument.isReadable(doc))
            return new OpenImmoFeedbackDocument(doc);
        else
            return null;
    }
public static OpenImmoDocument createDocument ( Document doc ) { if ( OpenImmoTransferDocument . isReadable ( doc ) ) return new OpenImmoTransferDocument ( doc ) ; else if ( OpenImmoFeedbackDocument . isReadable ( doc ) ) return new OpenImmoFeedbackDocument ( doc ) ; else return null ; }
Creates a {@link OpenImmoDocument} from a {@link Document}.

@param doc XML document
@return created document or null, of the document is not supported by this format
Creates a { @link OpenImmoDocument } from a { @link Document } .