}
throw new IllegalStateException(buffer.toString());
}
// Create the factory using the supplied properties.
OSGiBootFactory factory = OSGiBootFactory.createInstance(
properties);
// Create the manager for the OSGi framework.
manager = factory.createManager(properties);
// Store the OSGiManager in the ServletContext so it can be retrieved
// by other parts of the application if necessary.
servletContext.setAttribute(OSGiManager.class.getName(), manager);