private MultiOptionGroup parseMultiOptionGroup(Class<?> localisationClass,Class<?> panelId,XMLMultiOptionGroup xmlMultiGroupObj){
  MultiOptionGroup multiOptionGroupConfig=new MultiOptionGroup();
  multiOptionGroupConfig.setId(xmlMultiGroupObj.getId());
  multiOptionGroupConfig.setLabel(getLocalisedText(localisationClass,xmlMultiGroupObj.getLabel()));
  multiOptionGroupConfig.setShowLabel(xmlMultiGroupObj.isShowLabel());
  multiOptionGroupConfig.setOptional(xmlMultiGroupObj.isOption());
  List<XMLOptionGroup> optionGroupList=xmlMultiGroupObj.getOptionGroup();
  for (  XMLOptionGroup xmlOptionGroup : optionGroupList) {
    OptionGroup optionGroup=new OptionGroup();
    optionGroup.setId(xmlOptionGroup.getId());
    optionGroup.setLabel(getLocalisedText(localisationClass,xmlOptionGroup.getLabel()));
    optionGroup.setShowLabel(xmlOptionGroup.isShowLabel());
    List<XMLGroupConfig> xmlGroupConfigList=xmlOptionGroup.getGroup();
    if (xmlGroupConfigList != null) {
      for (      XMLGroupConfig xmlGroupConfig : xmlGroupConfigList) {
        GroupConfig groupConfig=parseGroup(localisationClass,panelId,xmlGroupConfig);
        optionGroup.addGroup(groupConfig);
      }
    }
    multiOptionGroupConfig.addGroup(optionGroup);
  }
  return multiOptionGroupConfig;
}

private MultiOptionGroup parseMultiOptionGroup ( Class < ? > localisationClass , Class < ? > panelId , XMLMultiOptionGroup xmlMultiGroupObj ) { MultiOptionGroup multiOptionGroupConfig = new MultiOptionGroup ( ) ; multiOptionGroupConfig . setId ( xmlMultiGroupObj . getId ( ) ) ; multiOptionGroupConfig . setLabel ( getLocalisedText ( localisationClass , xmlMultiGroupObj . getLabel ( ) ) ) ; multiOptionGroupConfig . setShowLabel ( xmlMultiGroupObj . isShowLabel ( ) ) ; multiOptionGroupConfig . setOptional ( xmlMultiGroupObj . isOption ( ) ) ; List < XMLOptionGroup > optionGroupList = xmlMultiGroupObj . getOptionGroup ( ) ; for ( XMLOptionGroup xmlOptionGroup : optionGroupList ) { OptionGroup optionGroup = new OptionGroup ( ) ; optionGroup . setId ( xmlOptionGroup . getId ( ) ) ; optionGroup . setLabel ( getLocalisedText ( localisationClass , xmlOptionGroup . getLabel ( ) ) ) ; optionGroup . setShowLabel ( xmlOptionGroup . isShowLabel ( ) ) ; List < XMLGroupConfig > xmlGroupConfigList = xmlOptionGroup . getGroup ( ) ; if ( xmlGroupConfigList != null ) { for ( XMLGroupConfig xmlGroupConfig : xmlGroupConfigList ) { GroupConfig groupConfig = parseGroup ( localisationClass , panelId , xmlGroupConfig ) ; optionGroup . addGroup ( groupConfig ) ; } } multiOptionGroupConfig . addGroup ( optionGroup ) ; } return multiOptionGroupConfig ; }
parses the multi option group .
