}
@Override
public void stop(StopContext context) {
Channel channel = this.channel.getValue();
channel.disconnect();
if (channel instanceof JChannel) {
try {
JmxConfigurator.unregisterChannel((JChannel) channel, this.server.getValue(), this.cluster);
} catch (Exception e) {
ROOT_LOGGER.debug(e.getMessage(), e);