class JobTransactionLogger {

    static String doFormat(JobManagerReconcilerEvent event) {
        if (event instanceof JobChangeReconcilerEvent.JobBeforeChangeReconcilerEvent) {
            return logJobBeforeChangeReconcilerEvent((JobChangeReconcilerEvent.JobBeforeChangeReconcilerEvent) event);
        }
        if (event instanceof JobChangeReconcilerEvent.JobAfterChangeReconcilerEvent) {
            return logJobAfterChangeReconcilerEvent((JobChangeReconcilerEvent.JobAfterChangeReconcilerEvent) event);
        }
        if (event instanceof JobChangeReconcilerEvent.JobChangeErrorReconcilerEvent) {
            return logJobChangeErrorReconcilerEvent((JobChangeReconcilerEvent.JobChangeErrorReconcilerEvent) event);
        }
        if (event instanceof JobModelReconcilerEvent.JobNewModelReconcilerEvent) {
            return logJobNewModelReconcilerEvent((JobModelReconcilerEvent.JobNewModelReconcilerEvent) event);
        }
        if (event instanceof JobModelReconcilerEvent.JobModelUpdateReconcilerEvent) {
            return logJobModelUpdateReconcilerEvent((JobModelReconcilerEvent.JobModelUpdateReconcilerEvent) event);
        }
        if (event instanceof JobModelReconcilerEvent.JobModelUpdateErrorReconcilerEvent) {
            return logJobModelUpdateErrorReconcilerEvent((JobModelReconcilerEvent.JobModelUpdateErrorReconcilerEvent) event);
        }
        return "Unknown event type: " + event.getClass();
    }

}