private String createStartChoiceMomentXml(String momentId,double timeoutLengthMinutes,String choiceDescription,String defaultChoiceId){
  String xml="";
  xml+=createStartMomentXml("choice",momentId);
  xml+="<timeout_length_minutes>" + Double.toString(timeoutLengthMinutes) + "</timeout_length_minutes>";
  xml+="<description>" + choiceDescription + "</description>";
  xml+="<default_choice id='" + defaultChoiceId + "'/>";
  return xml;
}

private String createStartChoiceMomentXml ( String momentId , double timeoutLengthMinutes , String choiceDescription , String defaultChoiceId ) { String xml = "" ; xml += createStartMomentXml ( "choice" , momentId ) ; xml += "<timeout_length_minutes>" + Double . toString ( timeoutLengthMinutes ) + "</timeout_length_minutes>" ; xml += "<description>" + choiceDescription + "</description>" ; xml += "<default_choice id='" + defaultChoiceId + "'/>" ; return xml ; }
a helper function to create an xml string representing the start of a choice moment .
