Fixes JBPM-3680.