public void updateLicenseNumber(Long id, String licenseNumber) throws Exception {
try {
taaServiceCore.updateLicenseNumber(id, licenseNumber);
} catch (JpaSystemException e) {
CustomExceptionMessageHelper.log(getClass(), Level.SEVERE, e);
throw new CustomException(MessageFormat.format(taaServiceCore.getMessageResource().getString("EXCEPTION_LICENSE_NUMBER_ALREADY_EXISTS"),
licenseNumber));
}
}