code: private Event submit(final RequestContext context, final Credential credential,
                          final MessageContext messageContext) {
          if (repository.submit(context, credential)) {
              return new EventFactorySupport().event(this,
                  CasWebflowConstants.TRANSITION_ID_AUP_ACCEPTED);
          }
          return error();
      }
docs: Record the fact that the policy is accepted.
  
  @param context        the context
  @param credential     the credential
  @param messageContext the message context
  @return success if policy acceptance is recorded successfully.