protected AuthenticationHandlerExecutionResult createHandlerResult(final @NonNull Credential credential,
                                                                       final @NonNull Principal principal) {
        return new DefaultAuthenticationHandlerExecutionResult(this, credential,
            principal, new ArrayList<>());
    }
Helper method to construct a handler result
on successful authentication events.

@param credential the credential on which the authentication was successfully performed.
                  Note that this credential instance may be different from what was originally provided
                  as transformation of the username may have occurred, if one is in fact defined.
@param principal  the resolved principal
@return the constructed handler result
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/handler/support/AbstractPreAndPostProcessingAuthenticationHandler.java