@Override
	public Map<Integer, Integer> getShoppingCart(UserModel user)
			throws WebshopAppException {

		if (isValidUser(user, "GET_SHOPPING_SHOPPING_CART_CONTENTS")) {

			try (Connection conn = getConnection()) {

				String sql = "SELECT product_id, quantity FROM shopping_cart WHERE user_email = ?";
				try (PreparedStatement pstmt = conn.prepareStatement(sql)) {
					setString(pstmt, 1, user.getEmail());

					try (ResultSet rs = pstmt.executeQuery()) {

						Map<Integer, Integer> contents = new LinkedHashMap<>();
						while (rs.next()) {
							contents.put(rs.getInt("product_id"),
									rs.getInt("quantity"));
						}

						Log.logOut(LOGGER, this,
								"GET_SHOPPING_SHOPPING_CART_CONTENTS",
								"Get shopping cart from user: ",
								user.getEmail());

						return contents;
					}
				}
			} catch (SQLException e) {
				WebshopAppException excep = new WebshopAppException(
						e.getMessage(), this.getClass().getSimpleName(),
						"GET_SHOPPING_SHOPPING_CART_CONTENTS");
				Log.logOutWAException(LOGGER, excep);
				throw excep;
			}
		}

		return null;

	}