code: public static boolean isAnnotationPresentInSuperClasses(final Class<?> componentClass,
  		final Class<? extends Annotation> annotationClass)
  	{
  		if (componentClass.isAnnotationPresent(annotationClass))
  		{
  			return true;
  		}
  		Class<?> superClass = componentClass.getSuperclass();
  		while (superClass != null)
  		{
  			if (superClass.isAnnotationPresent(annotationClass))
  			{
  				return true;
  			}
  			superClass = superClass.getSuperclass();
  		}
  		return false;
  	}
docs: Checks if is annotation present through making a lookup if the given annotation class is
  present in the given class or in one of the super classes.
  
  @param componentClass
  the component class
  @param annotationClass
  the annotation class
  @return true, if is annotation present