private boolean addIndexEntry(ServiceType resourceType,String resourceName,String policyName) throws PolicyException {
  ResourceIndex resourceIndex=(ResourceIndex)resourceIndices.get(resourceType.getName());
  if (resourceIndex == null) {
    resourceIndex=refreshResourceIndexFromDataStore(resourceType);
  }
  return resourceIndex.addIndexEntry(resourceName,policyName);
}

private boolean addIndexEntry ( ServiceType resourceType , String resourceName , String policyName ) throws PolicyException { ResourceIndex resourceIndex = ( ResourceIndex ) resourceIndices . get ( resourceType . getName ( ) ) ; if ( resourceIndex == null ) { resourceIndex = refreshResourceIndexFromDataStore ( resourceType ) ; } return resourceIndex . addIndexEntry ( resourceName , policyName ) ; }
adds a new index entry or updates an existing index entry
