// path was a bit too full of ../ sequences, in which case the expanded path is not valid and we adjust the
// error we write.
Resource metaResource = findLocalizedResource(null, metaPath, resources.getLocale());
Asset result = getComponentAsset(resources, expanded, metaResource);
if (result == null)
{
throw new RuntimeException(String.format("Unable to locate asset '%s' for component %s. It should be located at %s.",
path, resources.getCompleteId(),
metaPath));
}
// This is the best way to tell if the result is an asset for a Classpath resource.
Resource resultResource = result.getResource();
if (!resultResource.equals(metaResource))
{
if (firstWarning.getAndSet(false))
{