StatementIntermediate declarationStatement = (StatementIntermediate)catchDeclaration;
if(declarationStatement.getExpression() instanceof Declaration) {
Declaration declaration = (Declaration)declarationStatement.getExpression();
//now, we can convert this into a catch block.
CatchIntermediate catchIntermediate = new CatchIntermediate(declarationStatement.getInstruction(), ceg, declaration.getVariable());
igc.getGraph().addVertex(catchIntermediate);
//redirect statement to catch.
igc.redirectPredecessors(declarationStatement, catchIntermediate);
igc.redirectSuccessors(declarationStatement, catchIntermediate);