private void init(String resourceName) 
	{
		switch(resourceName){
		case RESOURCE_VISITS:
			if (map == null) {
				map = new TreeMap<String, Visit>();
			} 
			break;
		case RESOURCE_INDEX:
			if(index == null) {
				index = new TreeMap<String, String>();
				if(map.size() != 0){
					System.out.println("reindexing...");
					reindex();
					System.out.println("done");
				} 			
			}
			break;
		}
	}