@Override
	public List<Section> findAllSectionsByShop(Shop shop) throws BusinessException {
		List<Section> sections=new ArrayList<Section>();
		Connection connection=null;
		Statement statement=null;
		ResultSet resultSet=null;
		try {
			connection=dataSource.getConnection();
			String sql= "SELECT * FROM sections WHERE shop_id='"+shop.getId()+"'";
			statement=connection.createStatement();
			resultSet=statement.executeQuery(sql);
			while (resultSet.next()) {
				Integer sectionId=resultSet.getInt("section_id");
				String title=resultSet.getString("title");
				String body=resultSet.getString("body");
				SectionKind sectionKind=new SectionKind(resultSet.getInt("section_kind_id"));
			    Section section=new Section(sectionId, title, body, shop, sectionKind);
				sections.add(section);
			}
		}  catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			throw new BusinessException();
		} finally {
			if (resultSet != null) {
				try {
					resultSet.close();
				} catch (SQLException e) {
				}
			}
			if (statement != null) {
				try {
					statement.close();
				} catch (SQLException e) {
				}
			}
			if (connection != null) {
				try {
					connection.close();
				} catch (SQLException e) {
				}
			}
		}
		return sections;
	}