* @throws Exception if instantiation fails
*/
public Object readBeanInstance(Element node) throws Exception {
Object result;
Vector children;
Element child;
String name;
int i;
int x;
int y;
int id;
Object bean;
BeanVisual visual;
BeanInstance beaninst;
// for debugging only
if (DEBUG)
trace(new Throwable(), node.getAttribute(ATT_NAME));
m_CurrentNode = node;
result = null;
children = XMLDocument.getChildTags(node);
id = -1;
x = 0;
y = 0;
bean = null;
String customName = null;
for (i = 0; i < children.size(); i++) {
child = (Element) children.get(i);
name = child.getAttribute(ATT_NAME);
if (name.equals(VAL_ID)) {
id = readIntFromXML(child);
} else if (name.equals(VAL_X)) {
x = readIntFromXML(child);