private static String normalizePath(String path)
  {
    path = PathUtils.removeTrailingSlash(path);
    path = PathUtils.addLeadingSlash(path);
    return path;
  }
private static String normalizePath(String path)
  {
    path = PathUtils.removeTrailingSlash(path);
    path = PathUtils.addLeadingSlash(path);
    return path;
  }
private static String normalizePath ( String path ) { path = PathUtils . removeTrailingSlash ( path ) ; path = PathUtils . addLeadingSlash ( path ) ; return path ; }
The path never represents a directory => should not end with /
The path never represents a directory = > should not end with /