if (secure) {
SelfSignedCertificate ssc = new SelfSignedCertificate();
sslContext = SslContext.newServerContext(ssc.certificate(), ssc.privateKey());
}
observer = new CommunicationObserver("primary");
handler = new StandbyServerHandler(store, observer, allowedClientIPRanges);
bossGroup = new NioEventLoopGroup(1);
workerGroup = new NioEventLoopGroup();
final MBeanServer jmxServer = ManagementFactory.getPlatformMBeanServer();