XMLConfiguration mainConfig = getXmlConfiguration();
mainConfig.removeGridset(oldGridSetName);
mainConfig.addOrReplaceGridSet(new XMLGridSet(newGridSet));
mainConfig.save();
getGridSetBroker().remove(oldGridSetName);
getGridSetBroker().put(newGridSet);
// tld.removeGridset(oldGridSetName);
// tld.addGridSet(newGridSet);