assert this.factoryClass.getClassLoader() == classLoader: "Class loader mismatch";
this.factoryConstructor = this.factoryClass.getDeclaredConstructor( Environment.class );
this.defaultFactory = this.factoryConstructor.newInstance( Environment.DEFAULT );
}
catch (ClassNotFoundException e) {
throw new EngineException( e );
}
catch (InstantiationException e) {
throw new EngineException( e );
}
catch (IllegalAccessException e) {
throw new EngineException( e );
}
catch (SecurityException e) {
throw new EngineException( e );
}
catch (NoSuchMethodException e) {
throw new EngineException( e );
}
catch (InvocationTargetException e) {
throw new EngineException( e );
}
}