public synchronized Map getWorkspaceCache( String cacheType ) { TimedWeakReference<Map> val = caches.get( cacheType ); Map result = null; if ( val != null ) { result = val.get(); } if (result == null) { result = new HashMap(); initWorkspaceCache( cacheType, result ); } // getLogger().debug( "Retrieving workspace cache for: " + cacheType + " (" + result.size() + " entries)" ); return result; }