DaftIE/src/main/java/org/openestate/io/daft_ie/DaftIeUtils.java
public static DaftIeDocument createDocument(Document doc) {
        if (DaftIeDocument.isReadable(doc))
            return new DaftIeDocument(doc);
        else
            return null;
    }
public static DaftIeDocument createDocument(Document doc) {
        if (DaftIeDocument.isReadable(doc))
            return new DaftIeDocument(doc);
        else
            return null;
    }
Creates a {@link DaftIeDocument} from a {@link Document}.

@param doc XML document
@return created document or null, of the document is not supported by this format