/**
   * Formats the given date
   *
   * @param date The date to format
   * @return A String representing the date
   */
  private String formatEndDate(String date) {
    if (date != null && date.startsWith("now+")) {
      String years = date.substring(4);
      Calendar now = Calendar.getInstance();
      now.add(Calendar.YEAR, Integer.parseInt(years));
      return Constants.PROPERTIES_DATE_FORMAT.format(now.getTime());
    }

    return date;
  }
  /**
   * Formats the given date
   *
   * @param date The date to format
   * @return A String representing the date
   */
  private String formatStartDate(String date) {
    if (date != null && "now".equals(date))
      return Constants.PROPERTIES_DATE_FORMAT.format(new Date());

    return date;
  }