Added JDK 7 safe getDeclaredAnnotation.