class InstanceStateChangedListener extends PostGovernanceRepositoryEventListener {

    @Override
    protected Optional<GovernanceEvent> createGovernanceEvent(final DataChangedEvent event) {
        return Optional.of(new CircuitStateChangedEvent(RegistryCenterNodeStatus.DISABLED.toString().equalsIgnoreCase(event.getValue())));
    }

    public  InstanceStateChangedListener(final RegistryRepository registryRepository);

}