docs: public static long getPropertyAsLong(Properties props, String propertyName, long defaultValue) {
          String value = props.getProperty(propertyName, "").trim();
          if (value.isEmpty()) {
              return defaultValue;
          }
          try {
              long val = Long.parseLong(value);
              if (val <= 0) {
                  throw new IllegalArgumentException(
                          "Value of " + propertyName + " should be positive, but current value is " + val);
              }
              return val;
          } catch (NumberFormatException e) {
              throw new IllegalArgumentException(
                      "Property " + propertyName + " must be a number in Kinesis importer configuration.");
          }
      }