See https://github.com/kiegroup/droolsjbpm-integration/pull/1864/commits/4e0b38bfad452ff9fd287506b35d831024b44b19