public AnnotationType getType(int id) {
        return idMap.get(id);
    }
Returns an annotation type with the given id.

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