code: private void updateListActivity(boolean setSelection) {
          activityListModel.clear();
          if (getDialogObject() != null) {
              List<String> activities = new ArrayList<String>(getDialogObject().getActivities());
              Collections.sort(activities);
              for (String activity : activities) {
                  activityListModel.addElement(activity);
              }
          }
          if (!activityListModel.isEmpty() && setSelection) {
              activityList.setSelectedIndex(0);
          }
      }
docs: ------- FUNCTIONALITY ----------------------------------------------------------------------------------------------