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