}
synchronized (batchManager.store) {
offset = batchManager.getOffset();
OutputStream fsos = new BufferedOutputStream(batchManager.store.createOutputStream(), IO_BUFFER_SIZE);
ObjectOutputStream oos = new ObjectOutputStream(fsos);
batch.writeExternal(oos);
oos.close();
long size = batchManager.store.getLength() - offset;
long[] info = new long[] {offset, size};
batchManager.physicalMapping.put(this.id, info);
}