private static Element addProblemListSection(String name,Element bodyNode,Hashtable<String,Element> repeatControls,Element modelNode){
  Element groupNode=bodyNode.createElement(NAMESPACE_XFORMS,null);
  groupNode.setName(NODE_GROUP);
  Element labelNode=groupNode.createElement(NAMESPACE_XFORMS,null);
  labelNode.setName(NODE_LABEL);
  groupNode.addChild(Element.ELEMENT,labelNode);
  bodyNode.addChild(Element.ELEMENT,groupNode);
  Element repeatControl=buildRepeatControl(groupNode,null,name,modelNode);
  repeatControls.put(name,repeatControl);
  addControl(groupNode,repeatControl);
  return labelNode;
}

private static Element addProblemListSection ( String name , Element bodyNode , Hashtable < String , Element > repeatControls , Element modelNode ) { Element groupNode = bodyNode . createElement ( NAMESPACE_XFORMS , null ) ; groupNode . setName ( NODE_GROUP ) ; Element labelNode = groupNode . createElement ( NAMESPACE_XFORMS , null ) ; labelNode . setName ( NODE_LABEL ) ; groupNode . addChild ( Element . ELEMENT , labelNode ) ; bodyNode . addChild ( Element . ELEMENT , groupNode ) ; Element repeatControl = buildRepeatControl ( groupNode , null , name , modelNode ) ; repeatControls . put ( name , repeatControl ) ; addControl ( groupNode , repeatControl ) ; return labelNode ; }
creates a repeat control for problem lists with sections .
