added local ht work item handler for backward compatible usage that uses ksession and task service directly
JBPM-4029 - Improve gateway handling when inside a loop - cleanup and improvements