public static Course getSelectedCourse()
    {
      if (DEBUG) log("Attempting to determine selected course");
      Course selectedCourse = null;
      if (courses != null)
      {
        for(Course c : courses)
        {
          if (c.isSelected())
          {
            selectedCourse = c;
            break;
          }
        }
      }
      if (DEBUG)
      {
        if (selectedCourse != null)
        {
          log("Found selected course to be: " + selectedCourse.getName());
        }
        else
        {
          log("There was no selected course.");
        }
      }
      return selectedCourse;
    }