code: private static String getAnnotationAttributeValueFrom(
              final Class<?> annotationType,
              final String attributeName,
              final List<JavaAnnotation> annotations) {
  
          // QDox uses the fully qualified class name of the annotation for comparison.
          // Extract it.
          final String fullyQualifiedClassName = annotationType.getName();
  
          JavaAnnotation annotation = null;
          String toReturn = null;
  
          if (annotations != null) {
  
              for (JavaAnnotation current : annotations) {
                  if (current.getType().isA(fullyQualifiedClassName)) {
                      annotation = current;
                      break;
                  }
              }
  
              if (annotation != null) {
  
                  final Object nameValue = annotation.getNamedParameter(attributeName);
  
                  if (nameValue != null && nameValue instanceof String) {
  
                      toReturn = ((String) nameValue).trim();
  
                      // Remove initial and trailing " chars, if present.
                      if (toReturn.startsWith("\"") && toReturn.endsWith("\"")) {
                          toReturn = (((String) nameValue).trim()).substring(1, toReturn.length() - 1);
                      }
                  }
              }
          }
  
          // All Done.
          return toReturn;
      }
docs: Finds the value of the attribute with the supplied name within the first matching JavaAnnotation of
  the given type encountered in the given annotations List. This is typically used for reading values of
  annotations such as {@link XmlElement}, {@link XmlAttribute} or {@link XmlEnumValue}.
  
  @param annotations    The list of JavaAnnotations to filter from.
  @param annotationType The type of annotation to read attribute values from.
  @param attributeName  The name of the attribute the value of which should be returned.
  @return The first matching JavaAnnotation of type annotationType within the given annotations
  List, or {@code null} if none was found.
  @since 2.2