catchInfo = block.getSourceInfo();
JReferenceType argType = (JReferenceType) arg.getType();
// if ($e instanceof ArgType) { var userVar = $e; <user code> }
JExpression ifTest = new JInstanceOf(catchInfo, argType, new JLocalRef(
catchInfo, exVar));
JDeclarationStatement declaration = new JDeclarationStatement(
catchInfo, arg, new JLocalRef(catchInfo, exVar));
if (!block.getStatements().isEmpty()) {
// Only bother adding the assignment if the block is non-empty
block.addStmt(0, declaration);
}