try {
handler = createDataHandler(simMutuableTreeNode.getProject());
handler.delete(simMutuableTreeNode.getPathString());
} catch (IOException e) {
if (e instanceof SFTPException) {
SFTPException sftpExp = (SFTPException) e;
if (sftpExp.getServerErrorCode() != 2)
return false;
} else {
String message = e.getMessage();
JOptionPane.showMessageDialog(frame, message, "Deletion error",
JOptionPane.ERROR_MESSAGE);