UzerDTO user = (UzerDTO) getSession().getAttribute("user");
// ProgramManager cannot edit after launch validation.
if (document.getGcForLaunchsValidated() && !isAdmin && (document.getEcmManager() == null || document.getEcmManager().getId() != user.getId())) {
// cannot edit a launched program
throw new CannotEditLaunchedProgramException(MessageFormat.format(LocaleManager.getInstance(getSession()).getMessageResource(getClass())
.getString("EXCEPTION_ACCESS_DENIED_BECAUSE_OF_RIGHTS_PROGRAM_VALIDATION"), document.getName()));
}
Program program = null;
if (isAdmin) {