CasaIT/src/main/java/org/openestate/io/casa_it/CasaItUtils.java
public static CasaItDocument createDocument(Document doc) {
        if (CasaItDocument.isReadable(doc))
            return new CasaItDocument(doc);
        else
            return null;
    }
public static CasaItDocument createDocument(Document doc) {
        if (CasaItDocument.isReadable(doc))
            return new CasaItDocument(doc);
        else
            return null;
    }
Creates a {@link CasaItDocument} from a {@link Document}.

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