public static UserProfile buildUserProfileByClassCompleteName(final String completeName) {
        try {
            val constructor = CommonHelper.getConstructor(completeName);
            return (UserProfile) constructor.newInstance();
        } catch (final ClassNotFoundException | NoSuchMethodException | IllegalAccessException | InvocationTargetException
                 | InstantiationException e) {
            throw new TechnicalException(e);
        }
    }
Build a profile by its class name.

@param completeName the class name
@return the built user profile
pac4j-core/src/main/java/org/pac4j/core/profile/ProfileHelper.java