private static boolean hasSuperclass(Class<?> c, Class<?> superClass) {
		if (superClass == Object.class) return true;
		
		Class<?> s = c.getSuperclass();
		while(s != null && s != Object.class){
			if (s == superClass) return true;
			s = s.getSuperclass();
		}
		return false;
	}