Best way to customize resourceResolver behavior
Given an AEM 5.6.1 environment, what's the best way to use request headers to generate a resource path prefix?
For instance, suppose the locale is provided via httpRequest.getHeader("locale"), and our content is organized in the following tree:
en_US/homepage.html
ja_JP/homepage.html
How would you take a request for /homepage.html and internally prepend the locale retrieved from httpRequest.getHeader("locale")?