@Override
    public void put(DocumentPut documentPut, DocumentOperationParameters parameters) {
        PutDocumentMessage msg = new PutDocumentMessage(documentPut);
        Reply reply = syncSend(msg, parameters);
        if (reply.hasErrors()) {
            throw new DocumentAccessException(MessageBusAsyncSession.getErrorMessage(reply), reply.getErrorCodes());
        }
    }
Perform a synchronous sending of a message. This method block until the message is successfuly sent and a
corresponding reply has been received.

@param msg The message to send.
@return The reply received.
documentapi/src/main/java/com/yahoo/documentapi/messagebus/MessageBusSyncSession.java