ConfigurationBuilder builder = new ConfigurationBuilder();
ClusteringConfigurationBuilder clusteringConfigurationBuilder = builder.clustering();
clusteringConfigurationBuilder = clusteringConfigurationBuilder.cacheMode(CacheMode.DIST_SYNC);
HashConfigurationBuilder hashConfigurationBuilder = clusteringConfigurationBuilder.hash();
hashConfigurationBuilder = hashConfigurationBuilder.numOwners(2);