code: private void addCommaSeparatedChildren(Template template){
  		LazyNode next=child;
  		boolean first=true;
  		while(next!=null){
  			if(first){
  				first=false;
  			}else{
  				template.addConstant(",");
  			}
  			next.addSegments(template);
  			next=next.next;
  		}
  	}
docs: Functionality for extracting templates