public List<TaskHistoricalEvent> getHistoricalEvents() {
        List<TaskHistoricalEvent> result = new ArrayList<TaskHistoricalEvent>();
        List<TaskHistoricalEventType> historicalEventTypes = getContent()
                .getHistoricalEventTypes();

        if (historicalEventTypes != null) {
            for (TaskHistoricalEventType taskHistoricalEventType : historicalEventTypes) {
                String message = taskHistoricalEventType.getMessage();
                if ((message != null) && (message.isEmpty())) {
                    message = null;
                }
                TaskHistoricalEvent taskHistoricalEvent = new TaskHistoricalEvent(
                        taskHistoricalEventType.getCode(), message,
                        taskHistoricalEventType.getTimeStamp());
                result.add(taskHistoricalEvent);
            }
        }

        return result;
    }
public List < TaskHistoricalEvent > getHistoricalEvents ( ) { List < TaskHistoricalEvent > result = new ArrayList < TaskHistoricalEvent > ( ) ; List < TaskHistoricalEventType > historicalEventTypes = getContent ( ) . getHistoricalEventTypes ( ) ; if ( historicalEventTypes != null ) { for ( TaskHistoricalEventType taskHistoricalEventType : historicalEventTypes ) { String message = taskHistoricalEventType . getMessage ( ) ; if ( ( message != null ) && ( message . isEmpty ( ) ) ) { message = null ; } TaskHistoricalEvent taskHistoricalEvent = new TaskHistoricalEvent ( taskHistoricalEventType . getCode ( ) , message , taskHistoricalEventType . getTimeStamp ( ) ) ; result . add ( taskHistoricalEvent ) ; } } return result ; }
Gets the task historical events.

@return the task historical events