private static void setResponseVisibleSettings(
      PageData data,
      FeedbackSessionAttributes feedbackSession,
      FeedbackSessionsAdditionalSettingsFormSegment additionalSettings) {
    boolean hasResultVisibleDate =
        !TimeHelper.isSpecialTime(feedbackSession.resultsVisibleFromTime);

    additionalSettings.isResponseVisibleDateChecked = hasResultVisibleDate;

    additionalSettings.responseVisibleDateValue =
        hasResultVisibleDate ? TimeHelper.formatDate(feedbackSession.resultsVisibleFromTime) : "";
    additionalSettings.responseVisibleTimeOptions =
        data.getTimeOptionsAsElementTags(
            hasResultVisibleDate ? feedbackSession.resultsVisibleFromTime : null);
    additionalSettings.isResponseVisibleDateDisabled = !hasResultVisibleDate;

    additionalSettings.isResponseVisibleImmediatelyChecked =
        Const.TIME_REPRESENTS_FOLLOW_VISIBLE.equals(feedbackSession.resultsVisibleFromTime);

    additionalSettings.isResponseVisiblePublishManuallyChecked =
        Const.TIME_REPRESENTS_LATER.equals(feedbackSession.resultsVisibleFromTime)
            || Const.TIME_REPRESENTS_NOW.equals(feedbackSession.resultsVisibleFromTime);

    additionalSettings.isResponseVisibleNeverChecked =
        Const.TIME_REPRESENTS_NEVER.equals(feedbackSession.resultsVisibleFromTime);
  }
  private static void setSessionVisibleSettings(
      PageData data,
      FeedbackSessionAttributes feedbackSession,
      FeedbackSessionsAdditionalSettingsFormSegment additionalSettings) {
    boolean hasSessionVisibleDate =
        !TimeHelper.isSpecialTime(feedbackSession.sessionVisibleFromTime);

    additionalSettings.isSessionVisibleAtOpenChecked =
        Const.TIME_REPRESENTS_FOLLOW_OPENING.equals(feedbackSession.sessionVisibleFromTime);
    additionalSettings.isSessionVisiblePrivateChecked =
        Const.TIME_REPRESENTS_NEVER.equals(feedbackSession.sessionVisibleFromTime);

    additionalSettings.isSessionVisibleDateButtonChecked = hasSessionVisibleDate;
    additionalSettings.sessionVisibleDateValue =
        hasSessionVisibleDate ? TimeHelper.formatDate(feedbackSession.sessionVisibleFromTime) : "";
    additionalSettings.isSessionVisibleDateDisabled = !hasSessionVisibleDate;
    additionalSettings.sessionVisibleTimeOptions =
        data.getTimeOptionsAsElementTags(
            hasSessionVisibleDate ? feedbackSession.sessionVisibleFromTime : null);
  }