NOVELTY - The thermal energy recovery system comprises a boiler (22), which feeds combustion air and produces thermal gases comprising steam and exhaust, a cooker (30) for biomaterial, a bioreactor (50) for treating biomaterial and for separating solid and liquid biomaterial, a conduit (28), which forms a thermal communication means between the boiler, the cooker and the bioreactor and has a damper (34) to redirect thermal gases from the boiler into the conduit, and a wastewater treatment facility (90). The bioreactor is configured for breaking down the biomaterial.    USE - System for recovering thermal energy from boiler stack exhaust gases and from the burning of fossil fuels in the power plant system, where the thermal energy is useful for processing of biomaterials for composting, enzyme production and/or fermentation.    ADVANTAGE - The system is capable of economically recovering the thermal energy with high efficiency thus reducing nitrous oxide emissions.    DETAILED DESCRIPTION - The thermal energy recovery system comprises a boiler (22), which feeds combustion air and produces thermal gases comprising steam and exhaust, a cooker (30) for biomaterial, a bioreactor (50) for treating biomaterial and for separating solid and liquid biomaterial, a conduit (28), which forms a thermal communication means between the boiler, the cooker and the bioreactor and has a damper (34) to redirect thermal gases from the boiler into the conduit, and a wastewater treatment facility (90). The bioreactor is configured for breaking down the biomaterial, hydrolyzing the biomaterial and pulping the biomaterial, and comprises a component consisting of a composter, a fungal pretreater, an enzyme synthesis reactor, a digester, a separator and a fermenter, an aerobic component and an anaerobic component. A portion of the solid biomaterial is processed in the composter, and the liquid biomaterial is processed in the fermenter. The bioreactor is configured as a heat exchanger in thermal communication with the conduit, and as a heat exchanger between boiler exhaust gases and boiler combustion air. The bioreactor condenses water from the boiler exhaust gases by cooling the exhaust gases in thermal communication with the bioreactor to heat and humidify the boiler combustion air. The water treatment facility consists of a demineralizer, a wastewater-treater and/or a trickling filter. The wastewater produced by the boiler is recycled to one component of the system consisting of the bioreactor, the cooker and the water treatment facility. INDEPENDENT CLAIMS are included for:    (1) a method of recycling thermal energy from a boiler; and    (2) a container for transporting biomaterial.    DESCRIPTION OF DRAWING(S) - The diagram shows a schematic representation of an energy recovery and recycling system.    Boiler (22)    Conduit (28)    Cooker (30)    Damper (34)    Bioreactor (50)    Wastewater treatment facility. (90)