BANGOR — A judge has dropped charges against a man accused of cutting a pregnant woman’s neck at a coffee shop in Bangor.

Justice William Anderson said today he had no choice but to dismiss attempted murder and aggravated assault charges after staff at Riverview Psychiatric Hospital found that Jason Dean was incompetent to stand trial, and likely to remain so. The victim survived the unprovoked attack on March 16, 2009.

The defense contends the 33-year-old Dean has mental health problems and functions at the level of a 7-year-old. The Bangor Daily News says he’ll remain voluntarily at Riverview.

Frustrated over his lack of legal options, Anderson ordered involuntary commitment proceedings. Without a commitment order, Dean could legally leave Riverview and refuse treatment.