public static <T extends PrincipalResolver> T newPersonDirectoryPrincipalResolver(final Class<T> resolverClass,
                                                                                      final PrincipalResolutionContext context) {
        return Unchecked.supplier(() -> {
            val ctor = resolverClass.getDeclaredConstructor(PrincipalResolutionContext.class);
            return ctor.newInstance(context);
        }).get();
    }
New person directory principal resolver t.

@param <T>           the type parameter
@param resolverClass the resolver class
@param context       the context
@return the t
support/cas-server-support-person-directory-core/src/main/java/org/apereo/cas/authentication/principal/resolvers/PersonDirectoryPrincipalResolver.java