cfg.setProperty("hazelcast.jmx", "true");
cfg.setProperty("hazelcast.logging.type", "slf4j");
if (Config.IN_PRODUCTION) {
cfg.setNetworkConfig(new NetworkConfig().setJoin(new JoinConfig().
setMulticastConfig(new MulticastConfig().setEnabled(false)).
setTcpIpConfig(new TcpIpConfig().setEnabled(false)).
setAwsConfig(new AwsConfig().setEnabled(true).
setAccessKey(Config.AWS_ACCESSKEY).
setSecretKey(Config.AWS_SECRETKEY).
setRegion(Config.AWS_REGION).
setSecurityGroupName(Config.APP_NAME_NS))));