code: @Deprecated
      public static String setFragment(final String path, final String fragment) {
          final int i = path.indexOf(SHARP);
          final String p = i != -1 ? path.substring(0, i) : path;
          return p + (fragment != null ? (SHARP + fragment) : "");
      }
docs: Set fragment
  @param path path
  @param fragment new fragment, may be {@code null}
  @return path with new fragment