return (Binding) container.getComponentInstance(type);
}
Node createNode(InstanceComponent instance, ElementInstance[] elements, Object[] elementValues,
AttributeInstance[] attributes, Object[] attValues) {
NodeImpl node = new NodeImpl(instance);
if ((elements != null) && (elements.length > 0)) {
for (int i = 0; i < elements.length; i++) {
node.addChild(new NodeImpl(elements[i], elementValues[i]));
}
}
if ((attributes != null) && (attributes.length > 0)) {
for (int i = 0; i < attributes.length; i++) {
node.addAttribute(new NodeImpl(attributes[i], attValues[i]));
}
}
return node;
}