if (name.equals("nestedBean")) {
((TestBean) parent).setNestedBean(new NestedTestBean("newName"));
return true;
}
else if (name.equals("beans")) {
TestBean bean = (TestBean) parent;
if (bean.getBeans() == null || index >= bean.getBeans().length) {
bean.setBeans(new NestedTestBean[index + 1]);
}
bean.getBeans()[index] = new NestedTestBean("newName");
return true;
}
else if (name.equals("map")) {
((TestBean) parent).setMap(new HashMap());
return true;
}
else if (name.equals("TestKey5")) {
TestBean tb = new TestBean();
tb.setNestedBean(null);
tb.setBeans(null);
((Map) parent).put(name, tb);
return true;
}
else if (name.equals("matrix")) {
int[][] matrix = new int[2][];