void saveResourceIndex(String resourceType,String indexXML) throws PolicyException, SSOException {
  Map newAttrs=new HashMap();
  Set newSet=new HashSet();
  newSet.add(indexXML);
  newAttrs.put(RESOURCES_XML,newSet);
  ServiceConfig resources=getResourcesServiceConfig(true);
  if (resources != null) {
    ServiceConfig leafConfig=null;
    try {
      leafConfig=resources.getSubConfig(resourceType);
      if (leafConfig == null) {
        resources.addSubConfig(resourceType,PolicyManager.RESOURCES_POLICY_ID,0,newAttrs);
      }
 else {
        leafConfig.setAttributes(newAttrs);
      }
    }
 catch (    SMSException e1) {
      throw new PolicyException(e1);
    }
  }
}

void saveResourceIndex ( String resourceType , String indexXML ) throws PolicyException , SSOException { Map newAttrs = new HashMap ( ) ; Set newSet = new HashSet ( ) ; newSet . add ( indexXML ) ; newAttrs . put ( RESOURCES_XML , newSet ) ; ServiceConfig resources = getResourcesServiceConfig ( true ) ; if ( resources != null ) { ServiceConfig leafConfig = null ; try { leafConfig = resources . getSubConfig ( resourceType ) ; if ( leafConfig == null ) { resources . addSubConfig ( resourceType , PolicyManager . RESOURCES_POLICY_ID , 0 , newAttrs ) ; } else { leafConfig . setAttributes ( newAttrs ) ; } } catch ( SMSException e1 ) { throw new PolicyException ( e1 ) ; } } }
saves the resource index to data store
