// Handle each child node, which represent setter calls (or declarations).
INode[] nodes = node_.getChildren();
for(int i = 0; i < nodes.length; ++i)
{
INode node = nodes[i];
String name = node.getName();
String value = node.getValue();
// Look up the method and call it.
MethodInvocation mi = null;
// Is this a map or a list?
if(name == null)
{
String methodName = value;
if(node.isList())
{
String[] list = node.toList();
mi = SetterUtil.handleList(methodName, list, className_, methods);
}
else if(node.isMap())
{
Properties props = node.toMap();
mi = SetterUtil.handleMap(methodName, props, className_, methods);
}
else
{
Log.error(this, "setupInvocation", "Invalid node with value '" + value + "'.");