final IOException ioe = new IOException("Failed to instantiate Retry Handler") ;
ioe.initCause(th) ;
throw ioe ;
}
if (isConfigurable) {
final Configurable configurable = Configurable.class.cast(handler) ;
try {
configurable.setConfiguration(config) ;
} catch (final ConfigurationException ce) {
final IOException ioe = new IOException("Failed to configure Retry Handler") ;
ioe.initCause(ce) ;
throw ioe ;
}