if (scheduleExecution == null) {
throw new MissingEntityException(ScheduleExecution.class, scheduleExecutionId);
}
if (scheduleExecution.getFinished() != null) {
throw new ExecutionAlreadyFinishedException(scheduleExecution.getId());
}
scheduleExecution.setFinished(chronometer.getCurrentMoment());
scheduleExecution.setStatus(status);
scheduleExecution.setCancelled(false);