private static Config getConfigClusterB() {
   Config config = new Config();
   config
       .setLicenseKey(LICENSE_KEY)
       .getGroupConfig()
       .setName("clusterB")
       .setPassword("clusterB-pass");
   config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
   config
       .getNetworkConfig()
       .getJoin()
       .getTcpIpConfig()
       .setEnabled(true)
       .addMember("127.0.0.1:5702");
   return config;
 }
  private static Config createConfig(String licenceKey) {
    Config config = new Config();
    config.setLicenseKey(licenceKey);
    config.setProperty("hazelcast.wait.seconds.before.join", "0");
    SecurityInterceptorConfig securityInterceptorConfig = new SecurityInterceptorConfig();
    securityInterceptorConfig.setClassName(MySecurityInterceptor.class.getName());
    SecurityConfig securityConfig = config.getSecurityConfig();
    securityConfig.setEnabled(true).addSecurityInterceptorConfig(securityInterceptorConfig);

    // when you enable security all client requests are denied, so we need to give permission first
    // security-interceptor will be run after checking this permission
    PermissionConfig permissionConfig =
        new PermissionConfig(PermissionConfig.PermissionType.ALL, "", null);
    securityConfig.addClientPermissionConfig(permissionConfig);
    return config;
  }