ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/LoadMojo.java
private FormatHandler getFormatHandler(final Source source) {
        if (source instanceof Dsml) {
            return dsmlFormatHandler;
        } else if (source instanceof Ldif) {
            return ldifFormatHandler;
        } else {
            return null;
        }
    }
private FormatHandler getFormatHandler(final Source source) {
        if (source instanceof Dsml) {
            return dsmlFormatHandler;
        } else if (source instanceof Ldif) {
            return ldifFormatHandler;
        } else {
            return null;
        }
    }
Determine which format handler to use for a source file. If the source file is DSML then {@link #dsmlFormatHandler}
will be used and if it is LDIF then {@link #ldifFormatHandler}.

@param source Describes the source file.
@return The appropriate format handler or {@code null} if the source is not supported.