}
ClientPropertiesKey clientKey = ClientPropertiesKey.get(facesContext);
ImageCacheKey cacheKey = new ImageCacheKey(clientKey, name);
StringValue result = imageCache.get(cacheKey);
if (result == null) {
List paths = getPaths(clientKey, "", null, name.substring(0, dot),
name.substring(dot), false, true, true, null, true, ignoreMissing);
if (paths != null) {
result = new StringValue((String) paths.get(0));
} else {
result = StringValue.NULL;
}
imageCache.put(cacheKey, result);
}
if (LOG.isDebugEnabled()) {
if (result.getValue() == null) {
LOG.debug("Can't find image for \"{}\"", name);
}
}
return result.getValue();
}
return null;
}