public static boolean isSubClassOf(Class<?> subClass, Class<?> possibleSuperClass)
	{
		Class<?> c = subClass;
		while (c != null)
		{
			if (c.equals(possibleSuperClass))
			{
				return true;
			}
			c = c.getSuperclass();
		}
		return false;
	}