code: public static void store(String absolutePath, Properties configs) throws IOException {
          OutputStream outStream = null;
          try {
              outStream = new FileOutputStream(new File(absolutePath));
              configs.store(outStream, null);
          } finally {
              try {
                  if (outStream != null) {
                      outStream.close();
                  }
              } catch (IOException ignore) {
                  // do nothing.
              }
          }
      }
docs: Write into properties file.
  
  @param absolutePath absolute path in file system.
  @param configs      all configs to write.
  @throws java.io.IOException