if (type != InstanceType.PARTICIPANT && type != InstanceType.CONTROLLER)
{
throw new IllegalArgumentException("Dynamic file-based cluster manager doesn't support types other than participant and controller");
}
return new DynamicFileHelixManager(clusterName, instanceName, type, store);
}