public static Class<? extends StatsCollector> getNamedStatsCollector(String name){
			//first a name lookup
			Class<? extends StatsCollector> cls=namedClasses.get(name);
			if(cls!=null)
				return cls;
			
			//now we append package info
			try {
				cls=(Class<? extends StatsCollector>)Class.forName(PACKAGE+"."+name);
				if(cls!=null)
					return cls;
				cls=(Class<? extends StatsCollector>)Class.forName(name);
				if(cls!=null)
					return cls;
			} catch (ClassNotFoundException e) {
				throw new RuntimeException("Stats Collector not found. Check that the name is typed correctly and that the class path is correct",e);
			}
			assert false;
			return null;
		}