code: @SuppressWarnings({ "squid:S1166" })
      private static UserDetails loadUserByUsername(final String username) {
          final UserDetailsService userDetailsService = SpringContextHelper.getBean(UserDetailsService.class);
          try {
              return userDetailsService.loadUserByUsername(username);
          } catch (final UsernameNotFoundException e) {
              return new User(username, "", Collections.emptyList());
          }
      }
docs: Exception squid:S1166 - exception has to be hidden