Please move this logic back into WebPathResolver. It's bound to the web root.