for ( int i = instances.size()-1; i >= 0; i-- ) {
ImageInstance inst = (ImageInstance) instances.get( i );
Date checkTime = inst.getCheckTime();
if ( inst.getVolume() == volume
&& (checkTime == null || checkTime.before( startTime )) ) {
p.removeInstance( i );
}
}
}
txw.commit();
}