public DocumentType getDocumentType(String name) {
        return documentTypes.get(new DataTypeName(name));
    }
Returns a registered document type

@param name    the type name of the document type
@return returns the document type having this name, or null if none
document/src/main/java/com/yahoo/document/DocumentTypeManager.java