BUG Adjust Session::setFormMessage to fit with underlying API.