private static void addConfiguration(ClusterSetup setup, String baseDir,
String clusterName, String instanceName) throws IOException
{
Map<String, String> properties = new HashMap<String, String>();
ConfigScopeBuilder builder = new ConfigScopeBuilder();
ConfigScope instanceScope = builder.forCluster(clusterName)
.forParticipant(instanceName).build();
properties.put("change_log_dir", baseDir + instanceName + "/translog");
properties.put("file_store_dir", baseDir + instanceName + "/filestore");
properties.put("check_point_dir", baseDir + instanceName + "/checkpoint");
setup.getClusterManagementTool().setConfig(instanceScope, properties);