public String safeGet(Locator locator, String key) {
        String cacheValue = null;
        try {
            cacheValue = get(locator, key);
        } catch (CacheException ex) {
            log.trace(String.format("no cache value found for locator=%s, key=%s", locator.toString(), key));
        }
        return cacheValue;
    }
public String safeGet(Locator locator, String key) {
        String cacheValue = null;
        try {
            cacheValue = get(locator, key);
        } catch (CacheException ex) {
            log.trace(String.format("no cache value found for locator=%s, key=%s", locator.toString(), key));
        }
        return cacheValue;
    }
public String safeGet ( Locator locator , String key ) { String cacheValue = null ; try { cacheValue = get ( locator , key ) ; } catch ( CacheException ex ) { log . trace ( String . format ( "no cache value found for locator=%s, key=%s" , locator . toString ( ) , key ) ) ; } return cacheValue ; }
Similar to {@link #get(Locator, String)}, except this does not throw
any {@link CacheException}. Instead, it may return null if the cache
does not contain the requested locator for the specified key.

@param locator
@param key
@return
Similar to { @link #get ( Locator String ) } except this does not throw any { @link CacheException } . Instead it may return null if the cache does not contain the requested locator for the specified key .