@SuppressWarnings("unchecked")
	private void setUpNodes(Map<String, Object> configMap, String localName) {
		List<Object> configurationList = (List<Object>) configMap.get("configuration");
		int nodeIndex = 0;
		for (Object c : configurationList) {
			Map<String, Object> configEntry = (Map<String, Object>) c;
			Node node = new Node(configEntry.get("name").toString(), configEntry.get("ip").toString(), new Integer(
					configEntry.get("port").toString()));
			if (!configEntry.get("name").equals(localName)) {
				peerNodes.add(node);
			} else {
				localNode = node;
				localNodeIndex = nodeIndex;
			}
			allNodes.add(node);
			nodeIndex++;
		}
	}