DomainContext d = (DomainContext) c ; Iterator i = d.getObjectList().iterator() ; DefaultMutableTreeNode objectLevel = new DefaultMutableTreeNode( "Objects" ) ; if ( i.hasNext() ) { add( objectLevel ) ; while( i.hasNext() ) { objectLevel.add( new ObjectNode( (runtime.Object)i.next(), frame)) ; } }
	public ScenarioContextNode(Context c, LoggerFrame frame) {		this.frame = frame ; 		this.context = c ;                                 while ((c.getParent()) != null) {                    c = c.getParent() ;                }                DomainContext d = (DomainContext) c ; 		System.out.println("outside the loop"); 		Iterator i = d.getObjectList().iterator() ; 		while( i.hasNext() ) {			System.out.println("inside the loop"); 			add( new ObjectNode( (runtime.Object)i.next(), frame)) ;					}			}