class StatementProviderImpl implements StatementProvider {

    public ConditionsProvider getConditionsProvider(SAML2Config saml2Config) throws TokenCreationException {
        String customProvider = saml2Config.getCustomConditionsProviderClassName();
        if ((customProvider != null) && !customProvider.isEmpty()) {
            return createCustomProviderInstance(customProvider, ConditionsProvider.class);
        }
        return new DefaultConditionsProvider();
    }

    @Inject  StatementProviderImpl(KeyInfoFactory keyInfoFactory);

}