public void deleteXmlEntity(final XmlEntity xmlEntity,String[] groups) throws Exception {
  Region<String,Configuration> configRegion=getConfigurationRegion();
  if (groups == null) {
    Set<String> groupSet=configRegion.keySet();
    groups=groupSet.toArray(new String[groupSet.size()]);
  }
  for (  String group : groups) {
    Configuration configuration=(Configuration)configRegion.get(group);
    if (configuration != null) {
      String xmlContent=configuration.getCacheXmlContent();
      if (xmlContent != null && !xmlContent.isEmpty()) {
        Document doc=createAndUpgradeDocumentFromXml(xmlContent);
        XmlUtils.deleteNode(doc,xmlEntity);
        configuration.setCacheXmlContent(XmlUtils.prettyXml(doc));
        configRegion.put(group,configuration);
        writeConfig(configuration);
      }
    }
  }
}

public void deleteXmlEntity ( final XmlEntity xmlEntity , String [ ] groups ) throws Exception { Region < String , Configuration > configRegion = getConfigurationRegion ( ) ; if ( groups == null ) { Set < String > groupSet = configRegion . keySet ( ) ; groups = groupSet . toArray ( new String [ groupSet . size ( ) ] ) ; } for ( String group : groups ) { Configuration configuration = ( Configuration ) configRegion . get ( group ) ; if ( configuration != null ) { String xmlContent = configuration . getCacheXmlContent ( ) ; if ( xmlContent != null && ! xmlContent . isEmpty ( ) ) { Document doc = createAndUpgradeDocumentFromXml ( xmlContent ) ; XmlUtils . deleteNode ( doc , xmlEntity ) ; configuration . setCacheXmlContent ( XmlUtils . prettyXml ( doc ) ) ; configRegion . put ( group , configuration ) ; writeConfig ( configuration ) ; } } } }
deletes the xml entity from the shared configuration .
