public static AuditableExecutionResult of(final AuditableContext context) {
        val builder = AuditableExecutionResult.builder();
        context.getTicketGrantingTicket().ifPresent(builder::ticketGrantingTicket);
        context.getAuthentication().ifPresent(builder::authentication);
        context.getAuthenticationResult().ifPresent(builder::authenticationResult);
        context.getRegisteredService().ifPresent(builder::registeredService);
        context.getService().ifPresent(builder::service);
        context.getServiceTicket().ifPresent(builder::serviceTicket);
        builder.properties(context.getProperties());
        return builder.build();
    }
public static AuditableExecutionResult of ( final AuditableContext context ) { val builder = AuditableExecutionResult . builder ( ) ; context . getTicketGrantingTicket ( ) . ifPresent ( builder :: ticketGrantingTicket ) ; context . getAuthentication ( ) . ifPresent ( builder :: authentication ) ; context . getAuthenticationResult ( ) . ifPresent ( builder :: authenticationResult ) ; context . getRegisteredService ( ) . ifPresent ( builder :: registeredService ) ; context . getService ( ) . ifPresent ( builder :: service ) ; context . getServiceTicket ( ) . ifPresent ( builder :: serviceTicket ) ; builder . properties ( context . getProperties ( ) ) ; return builder . build ( ) ; }
Of auditable execution result.

@param context the context
@return the auditable execution result