// Register the ExtensionPointRegistry as an OSGi service
Dictionary<Object, Object> props = new Hashtable<Object, Object>();
registration = bundleContext.registerService(ExtensionPointRegistry.class.getName(), extensionPoints, props);
// Enable schema validation only of the logger level is FINE or higher
ValidationSchemaExtensionPoint schemas =
extensionPoints.getExtensionPoint(ValidationSchemaExtensionPoint.class);
if (schemas != null) {
schemas.setEnabled(logger.isLoggable(Level.FINE));
}
// Use the runtime-enabled assembly factory
modelFactories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class);
assemblyFactory = new RuntimeAssemblyFactory();