public virtual ITaskListener CreateClassDelegateTaskListener(ActivitiListener activitiListener)
 {
     return(classDelegateFactory.Create(activitiListener.Implementation, CreateFieldDeclarations(activitiListener.FieldExtensions)));
 }
 public virtual ClassDelegate CreateClassDelegateSendTask(SendTask sendTask)
 {
     return(classDelegateFactory.Create(sendTask.Id, sendTask.Implementation, CreateFieldDeclarations(sendTask.FieldExtensions), null, sendTask.MapExceptions));
 }