throws CaoException {
try {
MActivator a = activator;
if (a==null) a = MSingleton.instance().getActivator();
String appClass = config.getExtracted("application_class");
CaoApplication app = (CaoApplication) a.createObject(appClass,new Class[] {CaoConnection.class,IConfig.class}, new Object[] {con,config2});
return app;
} catch(Throwable t) {
throw new CaoException(t);
}
}