assert cls != null;
try {
return cls.newInstance();
}
catch (InstantiationException e) {
DispatcherConfigurationException ex = DispatcherConfigurationException.forUnableToInstantiateDispatcher(cls, e);
logger.fatal( ex.getMessage(), ex);
throw ex;
}
catch (IllegalAccessException e) {
DispatcherConfigurationException ex = DispatcherConfigurationException.forUnableToInstantiateDispatcher(cls, e);
logger.fatal( ex.getMessage(), ex);
throw ex;
}
}