code: private static String getAbsolutePath(final String relativePath) {
      final File outputFile = new File(relativePath);
      return outputFile.getAbsolutePath();
    }
docs: transform the given relative path into the absolute path based on the current directory where a user runs the demo.
  @param relativePath relative path
  @return absolute path