; and (B) in the case of a measure relating to contracting, of the restrictions imposed by the measure to each prospective contractor before entering into a contract. (2) Timing A measure relating to divestment or investment shall apply to an entity not earlier than the date that is 90 days after the date on which written notice is provided to the entity under paragraph (1). (3) Opportunity for comment In the case of a measure relating to divestment or investment, the State or local government shall provide an opportunity to comment in writing to each entity to which the measure is to be applied. If the entity demonstrates to the State or local government that neither the entity nor any entity related to the entity as described in paragraph (2) or (3) of subsection (a) has knowingly engaged in an activity described in subsection (b), the measure shall not apply to the entity. (4) Disclosure in contracting measures The State or local government may require, in a measure relating to contracting, that a prospective contractor disclose whether the prospective contractor or any entity related to the prospective contractor as described in paragraph (2) or (3) of subsection (a) knowingly engages in any activity described in subsection (b) before entering into a contract. (5) Sense of Congress on avoiding erroneous targeting It is the sense of Congress that a State or local government should not adopt a measure under subsection (a) with respect to an entity unless the State or local government has made every effort to avoid erroneously targeting the entity and has verified that the entity engages in an activity described in subsection (b). (d) Notice to Department of Justice (1) In general Except as provided in paragraph (2), not later than 30 days after adopting a measure described in subsection (a), the State or local government that adopted the measure shall submit written notice to the Attorney General describing the measure. (2) Existing measures With respect to measures described in subsection (a) adopted before