code: private String annotationName(Annotation annotation) {
          if (annotation.annotationType().isAssignableFrom(Named.class)) {
              return ((Named) annotation).value();
          } else if ("javax.inject.Named".equals(annotation.annotationType().getName())) {
              return Jsr330Helper.getNamedValue(annotation);
          } else {
              return null;
          }
      }
docs: Returns either the value of the annotation, either {@link Named} or
  "javax.inject.Named".
  
  @param annotation the Annotation
  @return The annotated value or <code>null</code> if no annotation is
  found