private void setNewType(DocumentType type) {
        content = type.contentStruct().createFieldValue();
    }
@param reader The deserializer to use for creating this document
document/src/main/java/com/yahoo/document/Document.java