List methods = classNode.getDeclaredMethods( "run" );
MethodNode method = ( MethodNode ) methods.get( 0 );
ASTNode expr = method.getCode( );
GroovyExprVisitor visitor = new GroovyExprVisitor( );
expr.visit( visitor );
Set refs = visitor.getVariables( );
List decls = new LinkedList( );
for ( Iterator declIter = availDecls.iterator( ); declIter.hasNext( ); )
{