final MarketArea marketArea = requestData.getMarketArea();
final Locale locale = requestData.getLocale();
final String contextNameValue = requestData.getContextNameValue();
final String velocityPath = requestData.getVelocityEmailPrefix();
final CustomerResetPasswordConfirmationEmailBean customerResetPasswordConfirmationEmailBean = new CustomerResetPasswordConfirmationEmailBean();
customerResetPasswordConfirmationEmailBean.setFromAddress(marketArea.getEmailFromAddress(contextNameValue, Email.EMAIl_TYPE_RESET_PASSWORD_CONFIRMATION));
customerResetPasswordConfirmationEmailBean.setFromName(marketArea.getEmailFromName(contextNameValue, Email.EMAIl_TYPE_RESET_PASSWORD_CONFIRMATION));
customerResetPasswordConfirmationEmailBean.setReplyToEmail(marketArea.getEmailFromAddress(contextNameValue, Email.EMAIl_TYPE_RESET_PASSWORD_CONFIRMATION));
customerResetPasswordConfirmationEmailBean.setToEmail(customer.getEmail());
customerResetPasswordConfirmationEmailBean.setTitle(referentialDataService.getTitleByLocale(customer.getTitle(), locale));
customerResetPasswordConfirmationEmailBean.setFirstname(customer.getFirstname());
customerResetPasswordConfirmationEmailBean.setLastname(customer.getLastname());
customerResetPasswordConfirmationEmailBean.setEmail(customer.getEmail());
customerResetPasswordConfirmationEmailBean.setCustomerDetailsUrl(urlService.buildAbsoluteUrl(requestData, urlService.generateUrl(FoUrls.PERSONAL_DETAILS, requestData)));
emailService.buildAndSaveCustomerResetPasswordConfirmationMail(requestData, customer, velocityPath, customerResetPasswordConfirmationEmailBean);
}