private DtStart getDtStartFromAllDayEvent(Date startDate, java.util.Calendar calendar) {

    calendar.clear();
    calendar.setTime(startDate);
    int year = calendar.get(java.util.Calendar.YEAR);
    int month = calendar.get(java.util.Calendar.MONTH);
    int date = calendar.get(java.util.Calendar.DAY_OF_MONTH);
    calendar.clear();
    calendar.set(year, month, date);
    DtStart start = new DtStart(new net.fortuna.ical4j.model.Date(calendar.getTime()));
    return start;
  }
  private DtEnd getDtEndFromAllDayEvent(Date endDate, java.util.Calendar calendar) {

    calendar.clear();
    calendar.setTime(endDate);
    int year = calendar.get(java.util.Calendar.YEAR);
    calendar.add(java.util.Calendar.DATE, 1);
    int month = calendar.get(java.util.Calendar.MONTH);
    int date = calendar.get(java.util.Calendar.DAY_OF_MONTH);
    calendar.clear();
    calendar.set(year, month, date);
    DtEnd end = new DtEnd(new net.fortuna.ical4j.model.Date(calendar.getTime()));
    return end;
  }