code: public ProjectCalendar getByName(String calendarName)
     {
        ProjectCalendar calendar = null;
  
        if (calendarName != null && calendarName.length() != 0)
        {
           Iterator<ProjectCalendar> iter = iterator();
           while (iter.hasNext() == true)
           {
              calendar = iter.next();
              String name = calendar.getName();
  
              if ((name != null) && (name.equalsIgnoreCase(calendarName) == true))
              {
                 break;
              }
  
              calendar = null;
           }
        }
  
        return (calendar);
     }
docs: Retrieves the named calendar. This method will return
  null if the named calendar is not located.
  
  @param calendarName name of the required calendar
  @return ProjectCalendar instance