code: static void ensurePrincipalAccessIsAllowedForService(final Service service,
                                                           final RegisteredService registeredService,
                                                           final Authentication authentication) {
          ensurePrincipalAccessIsAllowedForService(service, registeredService, authentication, true);
      }
docs: Ensure principal access is allowed for service.
  
  @param service           the service
  @param registeredService the registered service
  @param authentication    the authentication