docs: public void afterPropertiesSet() throws Exception {
          if (loginService == null) {
              loginService = new SimpleLoginService();
              ((SimpleLoginService) loginService).setName(realm);
          }
      }