Assert.notNull(pid, "persistence id property is required");
for (Iterator l = listeners.iterator(); l.hasNext();) {
ConfigListener listener = (ConfigListener) l.next();
listener.resolve(beanFactory, factory);
}
Dictionary props = new MapBasedDictionary();
props.put(Constants.SERVICE_PID, pid);
if (factory) {
registration = bundleContext.registerService(ManagedServiceFactory.class.getName(), new OsgiManagedServiceFactoryUpdater(),
props);
}