Conversion of biomass and waste to energy (TAP)