question: 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 ; } } }
target:  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.