private RetryStrategyFactory newRetryStrategyFactory(Configuration config,
TaskProcessor taskProcessor, String factoryName) throws ClassNotFoundException
{
final Class factoryClazz = ObjectUtil.classForName(factoryName);
final MutablePicoContainer pico = new DefaultPicoContainer();
pico.registerComponentInstance(TaskProcessor.class, taskProcessor);
pico.registerComponentImplementation(RetryStrategyFactory.class, factoryClazz);
pico.registerComponentInstance(config);
return (RetryStrategyFactory) pico.getComponentInstance(RetryStrategyFactory.class);
}