A person is not subject to action for a violation of a provision of this title or any rule or regulation adopted under this title so long as the person acts in accordance with a plan for compliance that: (1) The person has submitted to the political subdivision; and (2) The political subdivision has approved, with or without amendments.
Maryland Legal Code