VisualItem adaptAggregate(VisualItem item){
  if (item instanceof AggregateItem) {
    VisualItem[] proxy={item};
    withVisualItem((AggregateItem)item,null);
    item=proxy[0];
  }
  return item;
}

VisualItem adaptAggregate ( VisualItem item ) { if ( item instanceof AggregateItem ) { VisualItem [ ] proxy = { item } ; withVisualItem ( ( AggregateItem ) item , null ) ; item = proxy [ 0 ] ; } return item ; }
expecting a visualitem , usually an aggregate , will return the switch node which is a parent within the aggregate .
