class AuthnRequestFromTransactionHandler {

    public AuthnResponseFromCountryContainerDto getAuthnResponseFromCountryContainerDto(SessionId sessionId) {
        NonMatchingJourneySuccessStateController stateController = (NonMatchingJourneySuccessStateController)
                sessionRepository.getStateController(sessionId, ResponsePreparedState.class);
        NonMatchingJourneySuccessState state = stateController.getState();
        return new AuthnResponseFromCountryContainerDto(
                state.getCountrySignedResponseContainer().get(),
                state.getAssertionConsumerServiceUri(),
                state.getRelayState(),
                state.getRequestId(),
                state.getRequestIssuerEntityId(),
                idGenerator.getId()
        );
    }

    @Inject public  AuthnRequestFromTransactionHandler(
            SessionRepository sessionRepository,
            HubEventLogger hubEventLogger,
            PolicyConfiguration policyConfiguration,
            TransactionsConfigProxy transactionsConfigProxy,
            IdGenerator idGenerator);

}