}
finally {
// if (writer!=null) writer.dispose();
FileSystemEvent fileSystemInsertEvent = new FileSystemEvent(tmpTiff, FileSystemEventType.FILE_ADDED);
ret.add(fileSystemInsertEvent);
if (store!=null) store.dispose();
}
// add the event to the return