{
hibernateProvider.rollbackTransaction(tx);
if (he.getCause() != null && he.getCause().getMessage() != null && he.getCause().getMessage().toUpperCase().indexOf("CONSTRAINT") > 0)
{
throw new ProviderException(LocalStrings.ERROR_ALERT_DELETION);
}
log.error("deleteReportAlert", he);
throw new ProviderException(LocalStrings.ERROR_SERVERSIDE);
}
finally
{
hibernateProvider.closeSession(session);
}