If the defendant has been deemed incompetent to stand trial in a criminal matter then there has been a finding that the defendant is not competent resulting in his or her immediate placement in a mental institution as a matter of law.