* @return a new consistent hash instance
*/
public static ConsistentHash createConsistentHash(ConsistentHash template, Collection<Address> addresses) {
Hash hf = null;
int numVirtualNodes = 1;
GroupManager groupManager = null;
if (template instanceof AbstractWheelConsistentHash) {
AbstractWheelConsistentHash wTemplate = (AbstractWheelConsistentHash) template;
hf = wTemplate.hashFunction;
numVirtualNodes = wTemplate.numVirtualNodes;
groupManager = wTemplate.groupManager;