HtmlHelper.toHtml(HtmlHelper.emphasis(HtmlHelper.escapeForHTML(ex
.getMessage()))),
getTranslation("error", getLocale()),
SOptionPane.ERROR_MESSAGE);
} else if (ex instanceof BusinessException) {
.escapeForHTML(((BusinessException) ex).getI18nMessage(
this, getLocale())))),
getTranslation("error", getLocale()),
SOptionPane.ERROR_MESSAGE);
} else if (ex instanceof DataIntegrityViolationException) {
HtmlHelper.toHtml(HtmlHelper.emphasis(HtmlHelper
.escapeForHTML(this
.getTranslation(
refineIntegrityViolationTranslationKey((DataIntegrityViolationException) ex),
getLocale())))), this
.getTranslation("error", getLocale()),
SOptionPane.ERROR_MESSAGE);
} else if (ex instanceof ConcurrencyFailureException) {
SOptionPane.showMessageDialog(sourceComponent, HtmlHelper
.toHtml(HtmlHelper.emphasis(HtmlHelper
.escapeForHTML(getTranslation(
"concurrency.error.description", getLocale())))),
getTranslation("error", getLocale()),
SOptionPane.ERROR_MESSAGE);
} else {
SOptionPane.showMessageDialog(sourceComponent, String.valueOf(ex