class AuthenticationChangedListener extends PostGovernanceRepositoryEventListener {

    @Override
    protected Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event) {
        return Optional.of(new AuthenticationChangedEvent(new AuthenticationYamlSwapper().swapToObject(YamlEngine.unmarshal(event.getValue(), YamlAuthenticationConfiguration.class))));
    }

    public  AuthenticationChangedListener(final ConfigurationRepository configurationRepository);

}