in src/main/java/org/apache/sling/scripting/freemarker/internal/IncludeDirective.java [153:160]
private String dispatch(final String path, final RequestDispatcherOptions requestDispatcherOptions, final SlingHttpServletRequest slingHttpServletRequest, final SlingHttpServletResponse slingHttpServletResponse) {
// ensure the path is absolute and normalized
final String absolutePath = path.startsWith("/") ? path : String.format("%s/%s", slingHttpServletRequest.getResource().getPath(), path);
final String normalizedAbsolutePath = ResourceUtil.normalize(absolutePath);
final RequestDispatcher requestDispatcher = slingHttpServletRequest.getRequestDispatcher(normalizedAbsolutePath, requestDispatcherOptions);
Objects.requireNonNull(requestDispatcher, String.format("getting RequestDispatcher for path '%s' failed", normalizedAbsolutePath));
return dispatch(requestDispatcher, slingHttpServletRequest, slingHttpServletResponse);
}