}
LOG.debug("Request ready");
switch(op.type){
case Operation.ADD:
AddOp aOp = (AddOp) op;
aOp.cb.addComplete(aOp.getErrorCode(),
aOp.getLedger().getId(), aOp.entry,
aOp.ctx);
aOp.getLedger().setAddConfirmed(aOp.entry);
break;
case Operation.READ:
ReadOp rOp = (ReadOp) op;
LOG.debug("Got one message from the queue: " + rOp.firstEntry);
rOp.cb.readComplete(rOp.getErrorCode(),