public void Write(OutputNode node, Object item) { Class expect = type.Type; String key = entry.Key; if(entry.IsAttribute()) { throw new ElementException("Can not have %s as an attribute", expect); } if(key == null) { key = context.GetName(expect); } String name = style.GetElement(key); root.Write(node, item, expect, name); } }