public WorkflowReplayer(Iterator<DecisionTask> decisionTasks, final T workflowImplementation)
throws InstantiationException, IllegalAccessException {
WorkflowDefinitionFactoryFactory ff = new WorkflowReplayerPOJOFactoryFactory(workflowImplementation);
taskIterator = decisionTasks;
taskHandler = new AsyncDecisionTaskHandler(ff);
}