BeanUtils.populate(cfg, WebUtils.getParametersStartingWith(request, ""));
} catch (Exception e) {
throw new ServletException("BeanUtils.populate", e);
}
session.setAttribute(CLASS_NAME + "jahiaMailSettings", cfg);
JahiaData jData = (JahiaData) request.getAttribute("org.jahia.data.JahiaData");
ProcessingContext jParams = null;
if (jData != null) {
jParams = jData.getProcessingContext();
}
MailSettingsValidationResult result = MailServiceImpl.validateSettings(cfg, true);
if (!result.isSuccess()) {
session.setAttribute(CLASS_NAME + "jahiaDisplayMessage",