}
private String getOverrideMessage(Throwable t) {
if (t instanceof AsyncApiException) {
final AsyncApiException aae = (AsyncApiException)t;
final String hardDeleteNoPermsMessage = "hardDelete operation requires special user profile permission, please contact your system administrator";
if (aae.getExceptionCode() == AsyncExceptionCode.FeatureNotEnabled
&& aae.getExceptionMessage().contains(hardDeleteNoPermsMessage))
return Messages.getMessage(getClass(), "hardDeleteNoPerm");
}
return null;
}