_config = config;
_config.setWebApp(this);
Class cls = _config.getUiEngineClass();
if (cls == null) {
_engine = new UiEngineImpl();
} else {
try {
_engine = (UiEngine)cls.newInstance();
} catch (Exception ex) {
throw UiException.Aide.wrap(ex, "Unable to construct "+cls);