The municipal agency (Planning Board, Board of Adjustment or Borough Council) shall include findings of fact and conclusions based thereon in each decision on any application for development and shall reduce the decision to writing. The municipal agency shall provide the findings and conclusions through a resolution adopted at a meeting held within the time period provided in N.J.S.A. 40:55D-1 et seq. for action by the municipal agency on the application for development; or a memorializing resolution adopted at a meeting held not later than 45 days after the date of the meeting at which the municipal agency voted to grant or deny approval. Only the members of the municipal agency who voted for the action taken may vote on the memorializing resolution; the vote of a majority of such members present at the meeting at which the resolution is presented for adoption shall be sufficient to adopt the resolution. An action pursuant to N.J.S.A. 40:55D-9 (resulting from the failure of a motion to approve an application) shall be memorialized by resolution as provided above, with those members voting against the motion for approval being the members eligible to vote on the memorializing resolution. The vote on any such resolution shall be deemed to be a memorialization of the action of the municipal agency and not to be an action of the municipal agency; however, the date of the adoption of the resolution shall constitute the date of the decision for purposes of the mailings, filings, and publications required by Subsection F(2) and (3) below of this section (N.J.S.A. 40:55D-10). If the municipal agency fails to adopt a resolution or memorializing resolution as hereinabove specified, any interested party may apply to the Superior Court in a summary manner for an order compelling the municipal agency to reduce its findings and conclusions to writing within a stated time, and the cost of the application, including attorneys' fees, shall be assessed against the municipality. Failure of a motion to approve an application for development to receive the number of votes required for approval shall be deemed an action denying the application. The municipal agency may provide such written decision and findings and conclusions either on the date of the meeting at which the municipal agency takes action to grant or deny approval or, if the meeting at which such action is taken occurs within the final 45 days of the applicable time period for rendering a decision on the application for development, within 45 days of such meeting by the adoption of a resolution of memorialization setting forth the decision and the findings and conclusions of the municipal agency thereon. Any action resulting from the failure of a motion to approve an application shall be memorialized by resolution as provided above, notwithstanding the time at which such action occurs within the applicable time period for rendering a decision on the application. The adoption of a resolution of memorialization pursuant to this subsection shall not be construed to alter the applicable time period for rendering a decision on the application for development. Such resolution shall be adopted by a vote of a majority of the members of the municipal agency who voted for the action previously taken, and no other member shall vote thereon. The vote on such resolution shall be deemed to be a memorialization of an action of the municipal agency and not to be an action of the municipal agency, except that failure to adopt such a resolution within the forty-five-day period shall result in the approval of the application for development, notwithstanding any prior action taken thereon. Whenever a resolution of memorialization is adopted in accordance with this subsection, the date of such adoption shall constitute the date of the decision for purposes of the mailings, filings and publication required by Subsection F(2) and (3) of this section.