final public Document createDocument(GrowableByteBuffer buf) {
        DocumentDeserializer data = DocumentDeserializerFactory.createHead(this, buf);
        return new Document(data);
    }
Convenience method
@param name the name of a document type
@return returns true if a document type having this name is registered in this manager
document/src/main/java/com/yahoo/document/DocumentTypeManager.java