LOGGER.info(MessageFormat.format("new invoice[{0}] created for user[{1}]", new Object[] {new Long(i.getId()), o.getBuyer().getLogin()}));
return i;
} catch (DataAccessException dae) {
LOGGER.debug("error creating invoice", dae);
throw new ServiceException("cannot create invoice", dae);
} catch (DaoException e) {
LOGGER.debug("error creating invoice", e);
throw new ServiceException("cannot create invoice", e);
} catch (Exception re) {
LOGGER.debug("error creating invoice", re);
throw new ServiceException("cannot create invoice", re);
}
}