Trovit/src/main/java/org/openestate/io/trovit/TrovitUtils.java
public static TrovitDocument createDocument(Document doc) {
        if (TrovitDocument.isReadable(doc))
            return new TrovitDocument(doc);
        else
            return null;
    }
public static TrovitDocument createDocument(Document doc) {
        if (TrovitDocument.isReadable(doc))
            return new TrovitDocument(doc);
        else
            return null;
    }
public static TrovitDocument createDocument ( Document doc ) { if ( TrovitDocument . isReadable ( doc ) ) return new TrovitDocument ( doc ) ; else return null ; }
Creates a {@link TrovitDocument} 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 TrovitDocument } from a { @link Document } .