JBPM-3898 - Designer lost code format once OK button is clicked