public static boolean isInstanceOf(Object bean,Class<?> targetType){
  return Introspector.isSubclass(bean.getClass(),targetType);
}

public static boolean isInstanceOf ( Object bean , Class < ? > targetType ) { return Introspector . isSubclass ( bean . getClass ( ) , targetType ) ; }
check if a bean can be viewed as a given target type . the result will be true if the beans . getinstanceof method can be used on the given bean to obtain an object that represents the specified targettype type view .
