if ( date == null ) { return null; }
	public static String convertToXMLString( Date date )	{		GregorianCalendar cal = new GregorianCalendar( );		cal.setTime( date );		String pattern = XMLDATE_PATTERN_FULL;		if ( !cal.isSet( Calendar.HOUR ) )		{			pattern = XMLDATE_PATTERN_DATE_ONLY;		}		else if ( !cal.isSet( Calendar.SECOND ) )		{			pattern = XMLDATE_PATTERN_WITH_OUT_SECOND;		}		else if ( !cal.isSet( Calendar.MILLISECOND ) )		{			pattern = XMLDATE_PATTERN_WITH_OUT_MILLISECOND;		}		DateFormatter formater = new DateFormatter( pattern );		return formater.format( date );	}