if (request.getParameter("update") != null) {
Properties properties = new Properties();
properties.load(new FileInputStream(FileHelper.getCurrentPath(request) + "WEB-INF/classes/ApplicationResources.properties"));
FTPUtil ftpUtil = new FTPUtil(
properties.getProperty("update.ftpAddress"),
properties.getProperty("update.ftpUser"),
properties.getProperty("update.ftpPassword"));
ftpUtil.setIgnoreFiles(properties.getProperty("update.ignoreFiles"));
ftpUtil.setLogFile(properties.getProperty("update.logFile"));
ftpUtil.copyFromFTP(
properties.getProperty("update.ftpFolder"),
FileHelper.getCurrentPath(request));
mav.addObject("message", "Updated!");