status.addMsg("An email address must be specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
}
else {
final ForgotPasswordServiceContext context = getContext();
try {
final IForgotPasswordHandler handler = context.getForgotPasswordHandler();
final IUserRef user = handler.getUserRef(emailAddress);
final String rp = handler.resetPassword(user.getId());
data.put("username", user.getUsername());
data.put("emailAddress", user.getEmailAddress());
data.put("password", rp);
final MailManager mailManager = context.getMailManager();
final MailRouting mr = mailManager.buildAppSenderMailRouting(user.getEmailAddress());