LedgerEntry entry = seq.nextElement();
byte[] data = entry.getEntry();
ChannelBuffer toSend = lh.getDigestManager().computeDigestAndPackageForSending(entryId,
lh.getLastAddConfirmed(), entry.getLength(), data, 0, data.length);
bkc.getBookieClient().addEntry(newBookie, lh.getId(), lh.getLedgerKey(), entryId, toSend,
new WriteCallback() {
@Override
public void writeComplete(int rc, long ledgerId, long entryId, InetSocketAddress addr,
Object ctx) {
if (rc != Code.OK.intValue()) {
LOG.error("BK error writing entry for ledgerId: " + ledgerId + ", entryId: "