code: static Date convertDate(String date) throws ParseException {
          final int zIndex = date.indexOf('Z');
          if (zIndex - 3 < 0) {
              throw new ParseException(date
                      + " doesn't match the expected subversion date format", date.length());
          }
          String withoutMicroSeconds = date.substring(0, zIndex - 3);
  
          return getOutDateFormatter().parse(withoutMicroSeconds);
      }
docs: Converts the specified SVN date string into a Date.
  
  @param date with format "yyyy-MM-dd'T'HH:mm:ss.SSS" + "...Z"
  @return converted date
  @throws java.text.ParseException if specified date doesn't match the expected format