code: public static String newAppId(String appName) {
      String appIdSuffix = String.format("%s_%d", appName, System.currentTimeMillis());
      return "app_" + appIdSuffix;
    }
docs: Create a new app ID.
  
  @param appName application name
  @return new app ID