Filemaker/src/main/java/org/openestate/io/filemaker/FilemakerUtils.java
public static FilemakerDocument createDocument(Document doc) {
        if (FilemakerResultDocument.isReadable(doc))
            return new FilemakerResultDocument(doc);
        else if (FilemakerLayoutDocument.isReadable(doc))
            return new FilemakerLayoutDocument(doc);
        else
            return null;
    }
public static FilemakerDocument createDocument(Document doc) {
        if (FilemakerResultDocument.isReadable(doc))
            return new FilemakerResultDocument(doc);
        else if (FilemakerLayoutDocument.isReadable(doc))
            return new FilemakerLayoutDocument(doc);
        else
            return null;
    }
public static FilemakerDocument createDocument ( Document doc ) { if ( FilemakerResultDocument . isReadable ( doc ) ) return new FilemakerResultDocument ( doc ) ; else if ( FilemakerLayoutDocument . isReadable ( doc ) ) return new FilemakerLayoutDocument ( doc ) ; else return null ; }
Creates a {@link FilemakerDocument} 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 FilemakerDocument } from a { @link Document } .