//now updating user
try {
CreateFileUser.handleAdminGroup(authRealmName, groups);
String[] groups1 = (groups == null) ? null: groups.toArray(new String[groups.size()]);
fr.updateUser(userName, userName, password, groups1);
fr.writeKeyFile(keyFile);
report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
} catch (Exception e) {
report.setMessage(
localStrings.getLocalString("update.file.user.userupdatefailed",
"Updating user {0} in file realm {1} failed",