public static Long longOrNull(String value) {
    if (value == null) {
      return null;
    } else {
      return Long.parseLong(value);
    }
  }
AMSUtil provides utility methods for working with AMS (Amoro Management Service) related
operations.
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/utils/AmsUtil.java