code: public static void ensureServiceAccessIsAllowed(final RegisteredService registeredService) {
          ensureServiceAccessIsAllowed(registeredService != null ? registeredService.getName() : StringUtils.EMPTY, registeredService);
      }
docs: Ensure service access is allowed.
  
  @param registeredService the registered service