private static Element buildRepeatControl(Element bodyNode,Element controlNode,String name,Element modelNode){
  Element repeatControl=bodyNode.createElement(NAMESPACE_XFORMS,null);
  repeatControl.setName(CONTROL_REPEAT);
  repeatControl.setAttribute(null,ATTRIBUTE_BIND,name);
  if (controlNode != null)   repeatControl.addChild(Element.ELEMENT,controlNode);
 else   if (name.contains("problem_added") || name.contains("problem_resolved"))   addDefaultProblemListChild(name,repeatControl,null,modelNode);
 else   if (obsRepeatItems.contains(name))   addDefaultProblemListChild(name,repeatControl,"value",modelNode);
  return repeatControl;
}

private static Element buildRepeatControl ( Element bodyNode , Element controlNode , String name , Element modelNode ) { Element repeatControl = bodyNode . createElement ( NAMESPACE_XFORMS , null ) ; repeatControl . setName ( CONTROL_REPEAT ) ; repeatControl . setAttribute ( null , ATTRIBUTE_BIND , name ) ; if ( controlNode != null ) repeatControl . addChild ( Element . ELEMENT , controlNode ) ; else if ( name . contains ( "problem_added" ) || name . contains ( "problem_resolved" ) ) addDefaultProblemListChild ( name , repeatControl , null , modelNode ) ; else if ( obsRepeatItems . contains ( name ) ) addDefaultProblemListChild ( name , repeatControl , "value" , modelNode ) ; return repeatControl ; }
builds an xforms repeat control for problem list elemtnts .
