legacy api replaced for JBPM-4311