JForLoop loop = b._for();
JVar var = loop.init(model._ref(int.class), "i", JExpr.lit(0));
loop.test(var.lt(xsrVar.invoke("getAttributeCount")));
loop.update(var.assignPlus(JExpr.lit(1)));
b = loop.body();
JVar attName = b.decl(model._ref(String.class), "attName", xsrVar.invoke("getAttributeLocalName").arg(var));
JVar attNs = b.decl(model._ref(String.class), "attNs", xsrVar.invoke("getAttributeNamespace").arg(var));
JVar attValue = b.decl(model._ref(String.class), "attValue", xsrVar.invoke("getAttributeValue").arg(var));
JConditional cond = null;