if (mustInitAwt(configProperties)) {
initAwt(configProperties);
}
try {
FrameworkFactory frameworkFactory = getFrameworkFactory();
ArrayList<BundleActivator> activators = new ArrayList<BundleActivator>();
// Must put the URL handler first because it is used during
// the auto-update process.
activators.add(new EPURLHandlerActivator());
activators.add(new EclipseProjectURLAutoUpdater());
StringMap stringMap = new StringMap(configProperties, false);
stringMap.put("felix.systembundle.activators", activators);
framework = (Felix)frameworkFactory.newFramework(stringMap);
framework.init();
AutoProcessor.process(stringMap, framework.getBundleContext());
framework.start();
framework.waitForStop(0);
System.exit(0);