}
@Override
public void process(SlingHttpServletRequest request, SlingHttpServletResponse response, FilterChain chain)
throws ServletException, IOException {
MutableUrl url = new MutableUrl(request, false);
String resourceType = getResourceTypeFromSuffix(request);
boolean synthetic = ResourceUtil.isSyntheticResource(request.getResource());
if (synthetic && config.isSupportedResourceType(resourceType, request)) {
RequestDispatcherOptions options = new RequestDispatcherOptions();
options.setForceResourceType(resourceType);
Resource res = request.getResource();
String existingResource = getParentExistingResource(res.getPath(), res.getResourceResolver());
String path = url.getPath();
// add component name to the most related parent existing resource
if (!existingResource.isEmpty()) {
path = existingResource + path.substring(path.lastIndexOf('/'));
}