// Create extension point registry
extensionPoints = new DefaultExtensionPointRegistry();
// Create a monitor
UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class);
MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class);
monitor = monitorFactory.createMonitor();
modelFactories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class);
// Initialize the Tuscany module activators