JBlock newCatchBlock = new JBlock(program, catchInfo);
// $e = Exceptions.caught($e)
JMethod caughtMethod = program.getSpecialMethod("Exceptions.caught");
JMethodCall call = new JMethodCall(program, catchInfo, null, caughtMethod);
call.getArgs().add(exRef);
JExpressionStatement asg = program.createAssignmentStmt(catchInfo, exRef,
call);
newCatchBlock.statements.add(asg);
/*
* Build up a series of if, else if statements to test the type of the