void clearResourceIndex(String resourceTypeName){
  Set resourceTypes=new HashSet();
  resourceTypes.addAll(resourceIndices.keySet());
  Iterator iter=resourceTypes.iterator();
  while (iter.hasNext()) {
    String resourceType=(String)iter.next();
    if (resourceType.equalsIgnoreCase(resourceTypeName)) {
      resourceIndices.remove(resourceType);
      break;
    }
  }
}

void clearResourceIndex ( String resourceTypeName ) { Set resourceTypes = new HashSet ( ) ; resourceTypes . addAll ( resourceIndices . keySet ( ) ) ; Iterator iter = resourceTypes . iterator ( ) ; while ( iter . hasNext ( ) ) { String resourceType = ( String ) iter . next ( ) ; if ( resourceType . equalsIgnoreCase ( resourceTypeName ) ) { resourceIndices . remove ( resourceType ) ; break ; } } }
clears resourceindex of the given resource type name from the local cache . if an attempt is made to use this resource index subsequently , it would be refreshed from the datastore .
