public static Object run(InfoShift infoShiftOld, InfoShiftEditor infoShiftNew) {
check(RolePredicates.RESOURCE_ALLOCATION_MANAGER_PREDICATE);
final Shift shiftToEdit = FenixFramework.getDomainObject(infoShiftOld.getExternalId());
final ExecutionCourse newExecutionCourse =
FenixFramework.getDomainObject(infoShiftNew.getInfoDisciplinaExecucao().getExternalId());
shiftToEdit.edit(infoShiftNew.getTipos(), infoShiftNew.getLotacao(), newExecutionCourse, infoShiftNew.getNome(),
infoShiftNew.getComment());
return InfoShift.newInfoFromDomain(shiftToEdit);
}
}