public void updateLicenseNumber(Long id, String licenseNumber) throws Exception {
try {
UzerDTO user = (UzerDTO) getSession().getAttribute("user");
hasUpdateRights(user, id);
alertManagement.alert(user);
DSP5 dsp5 = dSP5DAO.find(id);
dsp5.setLicenseNumber(licenseNumber);
dSP5DAO.save(dsp5);
} catch (JpaSystemException e) {
throw new CustomException(MessageFormat.format(
LocaleManager.getInstance(getSession()).getMessageResource(getClass()).getString("EXCEPTION_LICENSE_NUMBER_ALREADY_EXISTS"),
licenseNumber));