CompletionStatus.COMPLETED_MAYBE);
} else if ( exception instanceof javax.transaction.InvalidTransactionException ) {
mappedException = new INVALID_TRANSACTION(MAPEXCEPTION_CODE,
CompletionStatus.COMPLETED_MAYBE);
} else if (exception instanceof ConcurrentAccessException) {
ConcurrentAccessException ex = (ConcurrentAccessException) exception;
exception = new ParallelAccessException(ex.getMessage(), ex);
mapped = false;
} else if ( exception instanceof EJBException ) {
EJBException ex = (EJBException) exception;
Throwable cause = ex.getCausedByException();
if(cause == null) {
cause = ex.getCause();
}
exception = new RemoteException(ex.getMessage(), cause);
mapped = false;
} else {
mapped = false;
}