public static synchronized StateProvider get() {
    if (null == sp) {
      sp = new DefaultStateProvider();
    }
    return sp;
  }
Default implementation. Here, ids are generated randomly.
hcatalog/core/src/main/java/org/apache/hive/hcatalog/data/transfer/state/DefaultStateProvider.java