@Override
	public Product readObject() throws IOException {
		if(receivedProducts == null){
			try{
//				receivedProducts = jdbcCon.getProductsfromDB(10);
				receivedProducts = jdbcCon.getProductsFromIdRange(10,14);
			} catch (SQLException e){
				e.printStackTrace();
			}
		}
		if(!receivedProducts.isEmpty()){
			Product receivedProduct = receivedProducts.get(0);
			System.out.println(receivedProduct.getId());
			receivedProducts.remove(0);
			return receivedProduct;
		} else receivedProducts = null;
		return null;
	}