legacy api updated for JBPM-4311

fix for https://issues.jboss.org/browse/JBPM-4311