public Object construct( final Object thiz, final Object[] args ) throws Exception {
Date d = null;
if( args == null || args.length == 0 ) {
return new CalendarArgumentsObject();
} else if( args[ 0 ] instanceof AppointmentObject ) {
final AppointmentObject a = (AppointmentObject) args[ 0 ];
return new CalendarArgumentsObject( a );
} else if( args[ 0 ] instanceof Scriptable ) {
// Re-usable method - move somewhere more convenient
// Converting JS Date from Scriptable to java.util.Date
try {