code: public static String resolve(String path) {
          if (path == null) {
              return null;
          }
          if (path.startsWith("~" + File.separator)) {
              return SystemUtil.getUserHome() + path.substring(1);
          }
          return path;
      }
docs: Resolves relative paths (currently only ~/ home directories).
  @param path the path to resolve
  @return the resolved path
  @since 1.3.0