private GregorianCalendar read(Date date) throws Exception {
  GregorianCalendar calendar=new GregorianCalendar();
  if (date != null) {
    calendar.setTime(date);
  }
  return calendar;
}

private GregorianCalendar read ( Date date ) throws Exception { GregorianCalendar calendar = new GregorianCalendar ( ) ; if ( date != null ) { calendar . setTime ( date ) ; } return calendar ; }
this method is used to convert the string value given to an appropriate representation . this is used when an object is being deserialized from the xml document and the value for the string representation is required .
