''

@classmethod
def create(cls, request_id, document, **metadata):

    header = cls.create_header(request_id=request_id)
    content = {'doc': document.to_json()}
    msg = cls(header, metadata, content)
    return msg
