// Unwrap a nested exception if possible. There is no
// point in the extra wrapping, and the EJB spec should have
// just used javax.transaction exceptions
if (e instanceof NestedException)
{
NestedException rollback = (NestedException) e;
if(rollback.getCause() instanceof Exception)
{
e = (Exception) rollback.getCause();
}
}
if (type == InvocationType.LOCAL
|| type == InvocationType.LOCALHOME)
{