if (!Mode.FORCE_CREATE.equals(getMode().getValue())
&& !Mode.CREATE.equals(getMode().getValue())) {
copyOfDest = FILE_UTILS.createTempFile(getTaskName(), ".tmp",
null, true, false);
ResourceUtils.copyResource(getDest(),
new FileResource(copyOfDest));
}
} catch (IOException ioex) {
if (copyOfDest != null && copyOfDest.exists()) {
FILE_UTILS.tryHardToDelete(copyOfDest);
}