public AnnotationTypeRegistry getAnnotationTypeRegistry() {
        return annotationTypeRegistry;
    }
Clears the DocumentTypeManager. After this operation,
only the default document type and data types are available.
document/src/main/java/com/yahoo/document/DocumentTypeManager.java