final String localePrefix = getLocalePrefixForLocateResource();
// check cache
if(getResourceLoaderCache().containsResource(resourceName, libraryName, contentType, localePrefix))
{
ResourceValue resourceValue = getResourceLoaderCache().getResource(
resourceName, libraryName, contentType, localePrefix);
resource = new ResourceImpl(resourceValue.getResourceMeta(), resourceValue.getResourceLoader(),
getResourceHandlerSupport(), contentType);
}
else
{
for (ResourceLoader loader : getResourceHandlerSupport().getResourceLoaders())