docs: @Override
      public String getPublicPathFromRealFile(String publicRoot, File file) throws IOException, NotAllowedException {
          String actualFilePath = file.getCanonicalPath();
          File rootFile = galleryAuthorizationService.getRootPathsForCurrentUser().get(publicRoot);
          String relativePath = actualFilePath.substring(rootFile.getCanonicalPath().length(), actualFilePath.length());
          StringBuilder builder = new StringBuilder();
          builder.append(publicRoot);
          builder.append(relativePath);
          String publicPath = separatorsToUnix(builder.toString());
          LOG.debug("Actual file: {}, generated public path: {}", file, publicPath);
          return publicPath;
      }