if (csvFile != null && csvFile.getFileName() != null && csvFile.getFileName().length() != 0){
try {
InputStream inputStream = csvFile.getInputStream();
UserManager userManager = new UserManager(locale,session);
UserImportResult importResult = userManager.importData(inputStream, userImportForm.getCharacterSet(), userImportForm.getDelimiter(),userSet,
userImportForm.getMergeSelection().equals("userName"),
userImportForm.getMergeSelection().equals("msisdn"),
userImportForm.getMergeSelection().equals("personnelNumber"));
inputStream.close();
req.setAttribute("userImportCounter", importResult.getUsersCreated());
req.setAttribute("userUpdateCounter", importResult.getUsersUpdated());
req.setAttribute("userIgnoreCounter", importResult.getUsersIgnored());
req.setAttribute("userImportErrormessages", importResult.getErrorMessages());
} catch (FileNotFoundException e){
throw new InputException(resources.getMessage(locale, "um.fileNotFound",csvFile.getFileName()),e);
} catch (IOException e) {
throw new InputException(resources.getMessage(locale, "um.couldNotReadFile",csvFile.getFileName()),e);