this.childPropertySetter = new ChildPropertySetter() {
public void setChild(Object parent, Object child, String parentName,
String propertyName) {
Closure cls = (Closure) childPropertySetter;
cls.setDelegate(self);
cls.call(new Object[]{parent, child, parentName, propertyName});
}
};
} else {
this.childPropertySetter = new DefaultChildPropertySetter();
}