code: public static <A extends Annotation> A getLastClassAnnotation(final Class<?> sourceClass, final Class<A> annotationClass) {
          A annotation = null;
          Class<?> currentClass = sourceClass;
          while (annotation == null && currentClass != null) {
              annotation = currentClass.getAnnotation(annotationClass);
              currentClass = currentClass.getSuperclass();
          }
          return annotation;
      }
docs: Extract the last annotation requested found into the class hierarchy.<br />
  Interfaces are not yet supported.
  
  @param sourceClass the class (wit its parent classes) to inspect
  @param annotationClass the annotation to find
  
  @param <A> the type of the requested annotation
  
  @return the request annotation or null if none have been found into the class hierarchy