United States from components which are substantially manufactured in the United States: Provided, That for the purpose of this section, the term manufactured shall include cutting, heat treating, quality control, testing of chain and welding (including the forging and shot blasting process): Provided further, That for the purpose of this section substantially all of the components of anchor and mooring chain shall be considered to be produced or manufactured in the United States if the aggregate cost of the components produced or manufactured in the United States exceeds the aggregate cost of the components produced or manufactured outside the United States: Provided further, That when adequate domestic supplies are not available to meet Department of Defense requirements on a timely basis, the Secretary of the Service responsible for the procurement may waive this restriction on a case-by-case basis by certifying in writing to the Committees on Appropriations of the House of Representatives and the Senate that such an acquisition must be made in order to acquire capability for national security purposes. 8017. None of the funds appropriated by this Act shall be used for the support of any nonappropriated funds activity of the Department of Defense that procures malt beverages and wine with nonappropriated funds for resale (including such alcoholic beverages sold by the drink) on a military installation located in the United States unless such malt beverages and wine are procured within that State, or in the case of the District of Columbia, within the District of Columbia, in which the military installation is located: Provided, That, in a case in which the military installation is located in more than one State, purchases may be made in any State in which the installation is located: Provided further, That such local procurement requirements for malt beverages and wine shall apply to all alcoholic beverages only for military installations in States which are not contiguous with another State: Provided