ResultSet categoriesResultSet = categoryStatement.executeQuery();
setDepartmentCategories(categoriesResultSet, department);
}
} catch (SQLException e) {
log.error("Error during statement creation", e);
throw new DaoException(e);
} catch (ConnectionPoolException e) {
log.error("Error during getting connection from the pool", e);
throw new DaoException(e);
}
return department;
}