Added support for 'hook' parameter for 'create task with reference' API call to TaskAPI method createTaskWithReference