Resource recovery in line with energy generation at an agro-food industry