class CasProfileDefinition extends CommonProfileDefinition {

    /**
     * <p>Constructor for CasProfileDefinition.</p>
     */
    public CasProfileDefinition() {
        super(parameters -> new CasProfile());
    }

    /** {@inheritDoc} */
    @Override
    public UserProfile newProfile(final Object... parameters) {<FILL_FUNCTION_BODY>}
}

        val proxyReceptor = (CasProxyReceptor) getParameter(parameters, 1);
        if (proxyReceptor != null) {
            val profile = new CasProxyProfile();
            profile.setPrincipal((AttributePrincipal) getParameter(parameters, 2));
            return profile;
        } else {
            return super.newProfile(parameters);
        }
    
<methods>public void <init>() ,public void <init>(org.pac4j.core.profile.factory.ProfileFactory) <variables>public static final java.lang.String DISPLAY_NAME,public static final java.lang.String EMAIL,public static final java.lang.String FAMILY_NAME,public static final java.lang.String FIRST_NAME,public static final java.lang.String GENDER,public static final java.lang.String LOCALE,public static final java.lang.String LOCATION,public static final java.lang.String PICTURE_URL,public static final java.lang.String PROFILE_URL