public static boolean isInstance(Class<?> aClass, String className) {
    if (aClass == null) return false;
    if (className.equals(aClass.getName())) return true;
    return isInstance(aClass.getSuperclass(), className);
  }
public static boolean isInstance(Class<?> aClass, String className)