class EidasSuccessfulMatchStateController extends AbstractSuccessfulMatchStateController<EidasSuccessfulMatchState> {

    @Override
    public ResponseFromHub getPreparedResponse() {
        List<EidasCountryDto> enabledCountries = countriesService.getCountries(state.getSessionId());

        if (enabledCountries.stream().noneMatch(country -> country.getEntityId().equals(state.getIdentityProviderEntityId()))) {
            throw new IdpDisabledException(state.getIdentityProviderEntityId());
        }

        return getResponse();
    }

    public  EidasSuccessfulMatchStateController(
            EidasSuccessfulMatchState state,
            ResponseFromHubFactory responseFromHubFactory,
            CountriesService countriesService);

}