}
}
private void aroundCreateAccount(InvocationContext ctx) {
if (ctx.getMethod().getName().equals("createAccount")) {
Account account = (Account) ctx.getParameters()[0];
if (StringUtils.equalsIgnoreCase(paramEJB.getProperty(Constante.SEND_EMAIL_ACCOUNT_CREATION), Boolean.TRUE.toString())) {
LOGGER.debug("demande d'envoi de mail :" + account);
Map<String, Object> properties = new HashMap<String, Object>();
properties.put("account", account);
mailEJB.sendEmailWithTemplate(account.getUser().getUsername(), Constante.SEND_EMAIL_ACCOUNT_CREATION, properties);
}
}
}