<BUG>}</BUG>
if (childView == null || childView.getClass() != viewClass) {
try {
childNode.children.clear();
childNode.attrs.clear();
<BUG>Context c = cache.peekLast().view.getContext();
View v = viewClass.getConstructor(Context.class).newInstance(c);
</BUG>
if (index < vg.getChildCount()) {
vg.removeViewAt(index);

childNode = new Node();
parentNode.children.add(index, childNode);
}
childNode.attr = 0;
childNode.child = 0;
childNode.view = childView;
if (childView == null || childView.getClass() != viewClass) {
try {
childNode.children.clear();
childNode.attrs.clear();
View v = viewClass.getConstructor(Context.class).newInstance(vg.getContext());
if (index < vg.getChildCount()) {
vg.removeViewAt(index);
