docs: public static AuthenticationBuilder of(final Principal principal,
                                             final PrincipalFactory principalFactory,
                                             final Map<String, List<Object>> principalAttributes,
                                             final Service service,
                                             final RegisteredService registeredService,
                                             final Authentication authentication) {
  
          val principalId = registeredService.getUsernameAttributeProvider().resolveUsername(principal, service, registeredService);
          val newPrincipal = principalFactory.createPrincipal(principalId, principalAttributes);
          return DefaultAuthenticationBuilder.newInstance(authentication).setPrincipal(newPrincipal);
      }