public WorkflowReplayer(AmazonSimpleWorkflow service, String domain, WorkflowExecution workflowExecution,
Class<T> workflowImplementationType) throws InstantiationException, IllegalAccessException {
POJOWorkflowDefinitionFactoryFactory ff = new POJOWorkflowDefinitionFactoryFactory();
ff.addWorkflowImplementationType(workflowImplementationType);
taskIterator = new ServiceDecisionTaskIterator(service, domain, workflowExecution);
taskHandler = new AsyncDecisionTaskHandler(ff);
}