public int ap;
public AsyncChunkWriteActionListener l;
public void run() {
try {
if(Arrays.equals(this.hash, k))
<BUG>this.hl = new InsertRecord(false,0);
</BUG>
else if (Main.chunkStoreLocal)
this.hl = HCServiceProxy.writeChunk(this.hash, this.chunk);
else

public int ap;
public AsyncChunkWriteActionListener l;
public void run() {
try {
if(Arrays.equals(this.hash, k))
this.hl = new InsertRecord(false,1);
else if (Main.chunkStoreLocal)
this.hl = HCServiceProxy.writeChunk(this.hash, this.chunk);
else
