@Override
    public boolean remove(DocumentRemove documentRemove, DocumentOperationParameters parameters) {
        RemoveDocumentMessage msg = new RemoveDocumentMessage(documentRemove.getId());
        msg.setCondition(documentRemove.getCondition());
        Reply reply = syncSend(msg, parameters);
        if (reply.hasErrors()) {
            throw new DocumentAccessException(MessageBusAsyncSession.getErrorMessage(reply));
        }
        if (reply.getType() != DocumentProtocol.REPLY_REMOVEDOCUMENT) {
            throw new DocumentAccessException("Received unknown response: " + reply);
        }
        return ((RemoveDocumentReply)reply).wasFound();
    }
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