attributesLevel.add( new AttributeNode( (Attribute)i.next() , thisInstance, frame )) ; }
StateMachine m = thisInstance.getInstanceClass().getStateMachine(); if( m != null ) { State currentState = thisInstance.getCurrentState(); add( new ContextStateMachineNode( m, currentState, frame )); } }
	public InstanceNode(Instance instance , LoggerFrame frame) {		this.frame = frame ;		this.thisInstance = instance ;				// add attributes to the instances subtree ;		DefaultMutableTreeNode attributesLevel = new DefaultMutableTreeNode( "Attributes" ) ;		Iterator i = thisInstance.getInstanceClass().getAllAttributes().iterator() ;		if ( i.hasNext() ) {			add( attributesLevel ) ;			while ( i.hasNext() ) {				attributesLevel.add( new AttributeNode( (Attribute)i.next() , frame )) ; 			}					}                DefaultMutableTreeNode associationsLevel = new DefaultMutableTreeNode( "Association" ) ;		Iterator j = thisInstance.getInstanceClass().getAssociations().values().iterator() ;                 if ( j.hasNext() ) {			add ( associationsLevel ) ; 			while ( j.hasNext() ) {				associationsLevel.add( new ContextAssociationNode( thisInstance, (Association)i.next() , frame )) ; 			}					}				attributesLevel.add( new AttributeNode( (Attribute)i.next() , thisInstance, frame )) ;			}