op.setSchedule(replacement);
}
}
private void replaceMessages() {
EmailMessageId successId = op.getSuccessMessageId();
if (successId != null) {
EmailMessage replacement = (EmailMessage) service.getReplacement(successId);
op.setSuccessMessage(replacement);
}
EmailMessageId failureId = op.getFailureMessageId();
if (failureId != null) {
EmailMessage replacement = (EmailMessage) service.getReplacement(failureId);
op.setFailureMessage(replacement);
}
}