private static TimerMethodData.AutomaticTimer processAutomaticTimerFromXML(com.ibm.ws.javaee.dd.ejb.Timer timer) {
        TimerSchedule timerSchedule = timer.getSchedule();

        boolean persistent = !timer.isSetPersistent() || timer.isPersistent();
        ScheduleExpression schedule = new ScheduleExpression();

        String year = timerSchedule.getYear();
        if (year != null) {
            schedule.year(year);
        }

        String month = timerSchedule.getMonth();
        if (month != null) {
            schedule.month(month);
        }

        String dayOfMonth = timerSchedule.getDayOfMonth();
        if (dayOfMonth != null) {
            schedule.dayOfMonth(dayOfMonth);
        }

        String dayOfWeek = timerSchedule.getDayOfWeek();
        if (dayOfWeek != null) {
            schedule.dayOfWeek(dayOfWeek);
        }

        String hour = timerSchedule.getHour();
        if (hour != null) {
            schedule.hour(hour);
        }

        String minute = timerSchedule.getMinute();
        if (minute != null) {
            schedule.minute(minute);
        }

        String second = timerSchedule.getSecond();
        if (second != null) {
            schedule.second(second);
        }

        schedule.timezone(timer.getTimezone());

        String start = timer.getStart();
        String end = timer.getEnd();
        Serializable info = timer.getInfo();

        return new TimerMethodData.AutomaticTimer(true, persistent, schedule, start, end, info); // F743-506CodRev
    }
private static TimerMethodData . AutomaticTimer processAutomaticTimerFromXML ( com . ibm . ws . javaee . dd . ejb . Timer timer ) { TimerSchedule timerSchedule = timer . getSchedule ( ) ; boolean persistent = ! timer . isSetPersistent ( ) || timer . isPersistent ( ) ; ScheduleExpression schedule = new ScheduleExpression ( ) ; String year = timerSchedule . getYear ( ) ; if ( year != null ) { schedule . year ( year ) ; } String month = timerSchedule . getMonth ( ) ; if ( month != null ) { schedule . month ( month ) ; } String dayOfMonth = timerSchedule . getDayOfMonth ( ) ; if ( dayOfMonth != null ) { schedule . dayOfMonth ( dayOfMonth ) ; } String dayOfWeek = timerSchedule . getDayOfWeek ( ) ; if ( dayOfWeek != null ) { schedule . dayOfWeek ( dayOfWeek ) ; } String hour = timerSchedule . getHour ( ) ; if ( hour != null ) { schedule . hour ( hour ) ; } String minute = timerSchedule . getMinute ( ) ; if ( minute != null ) { schedule . minute ( minute ) ; } String second = timerSchedule . getSecond ( ) ; if ( second != null ) { schedule . second ( second ) ; } schedule . timezone ( timer . getTimezone ( ) ) ; String start = timer . getStart ( ) ; String end = timer . getEnd ( ) ; Serializable info = timer . getInfo ( ) ; return new TimerMethodData . AutomaticTimer ( true , persistent , schedule , start , end , info ) ; }
F743-506