public boolean isLocalCache ( String cacheContainerName , String localCacheName ) throws Exception { if ( ! isCacheContainer ( cacheContainerName ) ) { return false ; } Address addr = Address . root ( ) . add ( SUBSYSTEM , SUBSYSTEM_INFINISPAN , CACHE_CONTAINER , cacheContainerName ) ; String haystack = LOCAL_CACHE ; return null != findNodeInList ( addr , haystack , localCacheName ) ; }
Checks to see if there is already a local cache with the given name .