/**
  * Update an existing Localization
  *
  * @author Adelina
  * @param Localization
  * @throws BusinessException
  */
 public void update(Localization locale) throws BusinessException {
   logger.debug("Updating Localization BL - START");
   try {
     localizationDao.update(locale);
   } catch (Exception e) {
     throw new BusinessException(ICodeException.LOCALIZATION_UPDATE, e);
   }
   logger.debug("Updating Localization BL - END");
   logger.debug("Localization updated, id:".concat(String.valueOf(locale.getLocalizationId())));
 }
 /**
  * Deletes a localization identified by its id
  *
  * @author Adelina
  * @throws BusinessException
  */
 public void delete(int localizationId) throws BusinessException {
   logger.debug("Delete - START id: ".concat(String.valueOf(localizationId)));
   try {
     localizationDao.delete(localizationId);
   } catch (Exception e) {
     throw new BusinessException(ICodeException.LOCALIZATION_DELETE, e);
   }
   logger.debug("Delete Localization BL - END");
   logger.debug("delete - END");
 }
 /**
  * Get a localization by a locale
  *
  * @author mitziuro
  * @throws BusinessException
  */
 public Localization getByLocale(Integer localizationId, String locale) throws BusinessException {
   logger.debug("Getting localization with locale=".concat(locale) + " - START");
   Localization localization = null;
   try {
     localization = localizationDao.getByLocale(locale, localizationId);
   } catch (Exception e) {
     throw new BusinessException(ICodeException.LOCALIZATION_GET, e);
   }
   logger.debug("Getting localization - END");
   return localization;
 }
 /**
  * Get a localization
  *
  * @author Adelina
  * @throws BusinessException
  */
 public Localization get(Integer localizationId) throws BusinessException {
   logger.debug(
       "Getting localization with id=".concat(String.valueOf(localizationId)) + " - START");
   Localization locale = null;
   try {
     locale = localizationDao.get(localizationId);
   } catch (Exception e) {
     throw new BusinessException(ICodeException.LOCALIZATION_GET, e);
   }
   logger.debug("Getting localization - END");
   return locale;
 }
 /**
  * Add a Localization
  *
  * @author Adelina
  * @throws BusinessException
  */
 public void add(Localization locale) throws BusinessException {
   logger.debug("Add Localization BL - START");
   try {
     localizationDao.add(locale);
   } catch (Exception e) {
     throw new BusinessException(ICodeException.LOCALIZATION_ADD, e);
   }
   logger.debug("Add Localization BL - END");
   logger.debug(
       "Localization added"
           .concat(" with id=")
           .concat(String.valueOf(locale.getLocalizationId())));
 }