public DocumentType getDocumentType(DataTypeName name) {
        return documentTypes.get(name);
    }
Gets a registered document.

@param name the document name of the type
@return returns the document type found,
        or null if there is no type with this name
document/src/main/java/com/yahoo/document/DocumentTypeManager.java