}
@SuppressWarnings ( "deprecation" )
protected JSONObject getJsonSimpleTrigger( int repeatCount, int interval, Date startDate, Date endDate ) {
JSONObject trigger = new JSONObject();
trigger.put( "repeatInterval", new JSONNumber( interval ) ); //$NON-NLS-1$
trigger.put( "repeatCount", new JSONNumber( repeatCount ) ); //$NON-NLS-1$
trigger
.put(
"startTime", startDate != null ? new JSONString( DateTimeFormat.getFormat( PredefinedFormat.ISO_8601 ).format( startDate ) ) : JSONNull.getInstance() ); //$NON-NLS-1$
if ( endDate != null ) {
endDate.setHours( 23 );