protected String getResourceCacheKey ( String path , GeneratorContext context ) { StringBuilder strbCacheKey = new StringBuilder ( path ) ; if ( StringUtils . isNotEmpty ( context . getBracketsParam ( ) ) ) { strbCacheKey . append ( "_" ) . append ( context . getBracketsParam ( ) ) ; } if ( StringUtils . isNotEmpty ( context . getParenthesesParam ( ) ) ) { strbCacheKey . append ( "_" ) . append ( context . getParenthesesParam ( ) ) ; } String cacheKey = strbCacheKey . toString ( ) ; Locale locale = context . getLocale ( ) ; if ( locale != null ) { cacheKey = LocaleUtils . toBundleName ( strbCacheKey . toString ( ) , locale ) ; } cacheKey = cacheKey . replaceAll ( "[^\\w\\.\\-]" , "_" ) ; return cacheKey ; }
Returns the cache key for linked resources map