final String filename = segments.get(lastSegmentAt);
if (Strings.isEmpty(filename) == false)
{
// TODO is calling getResource() a potential performance bottleneck?
final IResource resource = resourceReference.getResource();
if (resource instanceof IStaticCacheableResource)
{
final IStaticCacheableResource cacheable = (IStaticCacheableResource)resource;
final ResourceUrl cacheUrl = new ResourceUrl(filename, parameters);