}
if (build.getResult() == Result.SUCCESS) {
Result prev = findPreviousBuildResult(build);
if (prev == Result.FAILURE)
return new BackToNormalBuildMail(getRecipients(), sendToIndividuals, upstreamProjects, getCharset(),
Messages.MailSender_BackToNormal_Normal()).getMail(build, listener);
if (prev == Result.UNSTABLE)
return new BackToNormalBuildMail(getRecipients(), sendToIndividuals, upstreamProjects, getCharset(),
Messages.MailSender_BackToNormal_Stable()).getMail(build, listener);
}
return null;
}