public static boolean isProviderHybridInstanceOf(Class<? extends AuthProvider> clazz) {
        return authProvider instanceof HybridAuthProvider &&
            ((HybridAuthProvider) authProvider).isProvider(clazz);
    }
Indicates if the currently-installed AuthProvider is the HybridAuthProvider supporting a specific class.

@param clazz the class to check
@return {@code true}  if the currently-installed AuthProvider is a HybridAuthProvider that supports an instance of clazz, otherwise {@code false}.
xmppserver/src/main/java/org/jivesoftware/openfire/auth/AuthFactory.java