}
// Loop thru and insert/update row in RouteGroup_DestinationGroup table
if (rg.getDestGrpNameList() !=null)
{
DestinationGroupDAO dgDAO = (DestinationGroupDAO)SpringAppContext.getBean("DestinationGroupDAO") ;
for (String dgName : rg.getDestGrpNameList())
{
DestinationGroup destGrp = dgDAO.getDestinationGroup(dgName,rg.getOrganizationId()) ;
if(destGrp == null)
{
throw new RuntimeException("DestinationGroup " + dgName + " with rantId " + rg.getOrganizationId() + " does not exist") ;
}
addRteGrpDestGrp(rg, destGrp) ;