private Asset getComponentAsset( ComponentResources resources, String expandedPath, Resource metaResource) { if (expandedPath.contains(":") || expandedPath.startsWith("/")) { return getAssetInLocale(resources.getBaseResource(), expandedPath, resources.getLocale()); } // So, it's relative to the component. First, check if there's a match using the 5.4 rules. if (metaResource.exists()) { return getAssetForResource(metaResource); } Resource oldStyle = findLocalizedResource(resources.getBaseResource(), expandedPath, resources.getLocale()); if (oldStyle == null || !oldStyle.exists()) { return null; } return getAssetForResource(oldStyle); }