in or any classification or referral for employment by such a labor organization, or relating to any classification or referral for employment by such an employment agency, or relating to admission to, or employment in, any program established to provide apprenticeship or other training by such a joint labor-management committee, indicating any preference, limitation, specification, or discrimination, based on military service, except that such a notice or advertisement may indicate a preference, limitation, specification, or discrimination based on military service when military service is a bona fide occupational qualification for employment. (p) Exemptions (1) Inapplicability of title to certain aliens This section shall not apply to an employer with respect to the employment of aliens outside any State. (2) Compliance with statute as violation of foreign law It shall not be unlawful under this section for an employer (or a corporation controlled by an employer), labor organization, employment agency, or joint labor-management committee controlling apprenticeship or other training or retraining (including on-the-job training programs) to take any action otherwise prohibited by such section, with respect to an employee in a workplace in a foreign country if compliance with such section would cause such employer (or such corporation), such organization, such agency, or such committee to violate the law of the foreign country in which such workplace is located. (3) Control of corporation incorporated in foreign country (A) In general If an employer controls a corporation whose place of incorporation is a foreign country, any practice prohibited by this section engaged in by such corporation shall be presumed to be engaged in by such employer. (B) Foreign person not controlled by employer This section shall not apply with respect to the foreign operations of an employer that is a foreign person not controlled by an American employer. (C) Control For purposes of this subsection, the determination of whether an