Class bootstrapClass;
try {
bootstrapClass = bootstrapClassLoader.loadClass(bootstrapClassName);
if (bootstrapClass == null){
throw new DeploymentException("Could not find bootstrap class: " + bootstrapClassName);
}
this.bootstrap = (Bootstrap) bootstrapClass.newInstance();
this.bootstrap.init(ic);
}
catch (ClassNotFoundException e) {
log.error("Class not found: " + bootstrapClassName,e);
throw new DeploymentException(e);
}
catch (InstantiationException e) {
log.error("Could not instantiate : " + bootstrapClassName,e);
throw new DeploymentException(e);
}
catch (IllegalAccessException e) {
log.error("Illegal access on: " + bootstrapClassName,e);
throw new DeploymentException(e);
}
catch (JBIException e) {
log.error("Could not initialize : " + bootstrapClassName,e);
throw new DeploymentException(e);
}