Development of resource recovery process from wastewater and organic waste