return ret;
} catch (final JSONException e) {
LOGGER.log(Level.SEVERE, e.getMessage(), e);
if (transaction.isActive()) {
transaction.rollback();
}
throw new ServiceException(e);
} catch (final RepositoryException e) {
LOGGER.log(Level.SEVERE, e.getMessage(), e);