if (!MString.isEmpty(aName)) {
try {
CaoApplicationFactory aFactory = null;
if (MString.isEmpty(aClass)) {
aFactory = new SimpleApplicationFactory();
((SimpleApplicationFactory)aFactory).setActivator(activator);
} else {
aFactory = (CaoApplicationFactory) activator.createObject(aClass);
}
aFactory.setConfig(capp);