A Pennsylvania judge has rejected a former Susquehanna County prosecutor‘s attempt to be named district attorney, siding instead with a woman who was appointed earlier this year by the court to hold the law enforcement post.

On Monday, Senior Judge David E. Grine dismissed attorney William Urbanski’s lawsuit to supplant Marion O’Malley as district attorney. The court found Urbanski, who had been first assistant under the county’s last elected district attorney, failed to meet the law’s residency requirement before he took the oath of office at the beginning of the year.