Added more asserts for agentID
Introduced @TaskConsumerStateHolder instead of getState method name