@Action("do-import") public String doImport() throws Exception { String result = ""; try { result = ApiFactory.getDataImporterService().importData(file, fileName); } catch (IOException e) { e.printStackTrace(); } catch (ParseException e) { e.printStackTrace(); } renderText(result); return null; }