protected void invokeCustomInitializer(final Context context, final String customInitializerClassName) {
LOG.info("Using custom initializer: " + customInitializerClassName);
try {
final Object object = Class.forName(customInitializerClassName).newInstance();
final IConnectionInitializer customInitializer = (IConnectionInitializer) object;
customInitializer.initializeConnection(context.getConfig());
} catch (final ConnectionInitializationException e) {
final Throwable throwme = new StepExecutionException("ConnectionInitializer raised exception: " + e.getMessage(), fStep);
throw (RuntimeException) throwme.fillInStackTrace();
} catch (final Exception e) {
LOG.info("Root exception from Connection Initializer", e);