try {
t = environment.beginTransaction(null,null);
if(alreadyDropped.size() > 0) {
System.err.println("Deleting "+alreadyDropped.size()+" blocks beyond the length of the file");
for(int i=0;i<alreadyDropped.size();i++) {
<BUG>int unwantedBlock = ((Integer) alreadyDropped.get(i)).intValue();
DatabaseEntry unwantedBlockEntry = new DatabaseEntry();</BUG>
LongBinding.longToEntry(unwantedBlock, unwantedBlockEntry);
blockNumDB.delete(t, unwantedBlockEntry);
if(i % 1024 == 0) {

try {
t = environment.beginTransaction(null,null);
if(alreadyDropped.size() > 0) {
System.err.println("Deleting "+alreadyDropped.size()+" blocks beyond the length of the file");
for(int i=0;i<alreadyDropped.size();i++) {
int unwantedBlock = (alreadyDropped.get(i)).intValue();
DatabaseEntry unwantedBlockEntry = new DatabaseEntry();
LongBinding.longToEntry(unwantedBlock, unwantedBlockEntry);
blockNumDB.delete(t, unwantedBlockEntry);
if(i % 1024 == 0) {
