if (!fileInfo.exists() || confirmOverwrite(fileStore)) {
OutputStream output= null;
try {
output= new BufferedOutputStream(fileStore.openOutputStream(EFS.NONE, null));
TemplateReaderWriter writer= new TemplateReaderWriter();
writer.save(templates, output);
} catch (CoreException e) {
openWriteErrorDialog();
} catch (IOException e) {
openWriteErrorDialog();
} finally {