A person who is convicted of any misdemeanor of domestic violence shall be notified by the court that it is unlawful for the person to ship, transport, or possess a firearm or ammunition pursuant to 18 U.S.C. § 922(g)(8) and (9), as they existed on January 1, 2007.