if ("name".equals(localName))
bean.setName(attrs.getValue(i));
else if ("class".equals(localName))
bean.setBean(attrs.getValue(i));
else if ("mode".equals(localName))
bean.setMode(new ControllerMode(attrs.getValue(i)));
else if ("parent".equals(localName))
bean.setParent(attrs.getValue(i));
else if ("abstract".equals(localName))
bean.setAbstract(Boolean.parseBoolean(attrs.getValue(i)));
else if ("autowire-type".equals(localName))