public void addUser( long companyId, long userId, String password, String firstName, String middleName, String lastName, String emailAddress) { try { CyrusServiceUtil.addUser(userId, emailAddress, password); // Expect String addUserCmd = PropsUtil.get(PropsKeys.MAIL_HOOK_CYRUS_ADD_USER); addUserCmd = StringUtil.replace(addUserCmd, "%1%", String.valueOf(userId)); Runtime rt = Runtime.getRuntime(); Process p = rt.exec(addUserCmd); ProcessUtil.close(p); } catch (Exception e) { _log.error(e, e); } }