code: public static void serializePublishCommands(State state, QueryBasedHivePublishEntity queryBasedHivePublishEntity) {
      state.setProp(HiveAvroORCQueryGenerator.SERIALIZED_PUBLISH_TABLE_COMMANDS,
          GSON.toJson(queryBasedHivePublishEntity));
    }
docs: *
  Serialize a {@link QueryBasedHivePublishEntity} into a {@link State} at {@link #SERIALIZED_PUBLISH_TABLE_COMMANDS}.
  @param state {@link State} to serialize entity into.
  @param queryBasedHivePublishEntity to carry to publisher.