; and (ii) on a million British thermal unit basis, uses at least 80 percent of its total annual aggregate net output of electric energy and useful thermal energy for onsite industrial, commercial, or institutional purposes, rather than for sale. . 4. Recognition of State or local determinations Section 210(m) of the Public Utility Regulatory Policies Act of 1978 ( 16 U.S.C. 824a–3(m) ), as amended by section 3, is further amended by adding at the end the following: (9) State or local determination After the date of enactment of this paragraph, no electric utility shall be required to enter into a new contract or obligation to purchase electric energy under this section from a qualifying small power production facility that is not a qualifying small power production facility described in paragraph (8)(B) if the appropriate State regulatory agency or non-regulated electric utility finds, and submits to the Commission a written determination, that— (A) the electric utility has no need to purchase electric energy from such qualifying small power production facility in the amounts to be offered within the timeframe proposed by the qualifying small power production facility, consistent with the needs for electric energy and the timeframe for those needs as specified in an electric utility’s integrated resource plan, in order to meet its obligation to serve customers; or (B) the electric utility employs integrated resource planning and conducts a competitive resource procurement process for long-term energy resources that provides an opportunity for qualifying small power production facilities to supply electric energy to the electric utility in accordance with the integrated resource plan of the electric utility. .