public Map<String, AnnotationType> getTypes() {
        return Collections.unmodifiableMap(nameMap);
    }
Returns an unmodifiable of all types registered.
document/src/main/java/com/yahoo/document/annotation/AnnotationTypeRegistry.java