code: public static void setIsFirstPublishMetadata(WorkUnitState wus) {
      if (!Boolean.valueOf(wus.getPropAsBoolean(IS_WATERMARK_WORKUNIT_KEY))) {
        LongWatermark previousWatermark = wus.getWorkunit().getLowWatermark(LongWatermark.class);
        wus.setProp(SlaEventKeys.IS_FIRST_PUBLISH, (null == previousWatermark || previousWatermark.getValue() == 0));
      }
    }
docs: Sets metadata to indicate whether this is the first time this table or partition is being published.
  @param wus to set if this is first publish for this table or partition