/**
* Performs EJB rules when a system exception occurs.
*/
public static void handleSystemException(TransactionPolicy txPolicy, Throwable sysException, ThreadContext callContext) throws InvalidateReferenceException {
// Log the system exception or error
Operation operation = null;
if (callContext != null) {
operation = callContext.getCurrentOperation();
}
if (operation != null && operation.isCallback()) {
logger.error("startup.beanInstanceSystemExceptionThrown", sysException, sysException.getMessage());
} else {
logger.debug("startup.beanInstanceSystemExceptionThrown", sysException, sysException.getMessage());
}