public Element writeBeanVisual(Element parent,Object o,String name) throws Exception {
  Element node;
  BeanVisual visual;
  if (DEBUG) {
    trace(new Throwable(),name);
  }
  m_CurrentNode=parent;
  visual=(BeanVisual)o;
  node=writeToXML(parent,o,name);
  invokeWriteToXML(node,visual.getIconPath(),VAL_ICONPATH);
  invokeWriteToXML(node,visual.getAnimatedIconPath(),VAL_ANIMATEDICONPATH);
  return node;
}

public Element writeBeanVisual ( Element parent , Object o , String name ) throws Exception { Element node ; BeanVisual visual ; if ( DEBUG ) { trace ( new Throwable ( ) , name ) ; } m_CurrentNode = parent ; visual = ( BeanVisual ) o ; node = writeToXML ( parent , o , name ) ; invokeWriteToXML ( node , visual . getIconPath ( ) , VAL_ICONPATH ) ; invokeWriteToXML ( node , visual . getAnimatedIconPath ( ) , VAL_ANIMATEDICONPATH ) ; return node ; }
adds the given beanvisual to a dom structure .
