public AnnotationType getType(String name) {
        return nameMap.get(name);
    }
Returns an annotation type with the given name.

@param name the name of the annotation type to return
@return an {@link AnnotationType} with the given name, or null if it is not registered
document/src/main/java/com/yahoo/document/annotation/AnnotationTypeRegistry.java