public Variable getVariable() { if (!bound) { bound = true; int position = find(statementList, after); VariableDeclaration varDecl = new VariableDeclaration( OJUtil.toTypeName(type, typeFactory), variable.toString(), null); statementList.insertElementAt(varDecl, position); varDecl.setInitializer(thunk.getInitializer()); } return variable; }