code: @Bean
      @ConditionalOnMissingBean(AuthenticationInformationRetriever.class)
      public AuthenticationInformationRetriever<HodAuthentication<EntityType.Combined>, HodAuthenticationPrincipal> authenticationInformationRetriever() {
          @SuppressWarnings("unchecked")
          final AuthenticationInformationRetriever<HodAuthentication<EntityType.Combined>, HodAuthenticationPrincipal> retriever =
                  new SpringSecurityAuthenticationInformationRetriever<>((Class<HodAuthentication<EntityType.Combined>>) (Class<?>) HodAuthentication.class, HodAuthenticationPrincipal.class);
          return retriever;
      }
docs: Note that this bean cannot go in HavenSearchHodApplication because it would then cause a circular dependency in upstream applications