if (cd.isImmediate()) { try { buildDispose.buildComponentConfigInstance(null, cdp); } catch (ComponentException e) { Log.log(1, "[SCR] Error attempting to build Component.", e); } }
	public void registerComponentConfigs(List componentDescriptionProps) {		ComponentDescriptionProp cdp;		ComponentDescription cd;		String factoryPid = null;		// loop through CD+P list		Iterator it = componentDescriptionProps.iterator();		while (it.hasNext()) {			cdp = (ComponentDescriptionProp) it.next();			cd = cdp.getComponentDescription();			if (DEBUG)				System.out.println("InstanceProcess: buildInstances: component name = " + cd.getName());			// if component is immediate - create instance immediately			if (cd.isImmediate()) {				try {					buildDispose.buildComponentConfigInstance(null, cdp);				} catch (ComponentException e) {					Log.log(1, "[SCR] Error attempting to build Component.", e);				}			}			// ComponentFactory			if (cdp.isComponentFactory()) {				if (DEBUG)					System.out.println("InstanceProcess: buildInstances: ComponentFactory");				// check if MSF				ConfigurationAdmin configurationAdmin = (ConfigurationAdmin) main.resolver.configAdminTracker.getService();				if (configurationAdmin != null) {					try {						Configuration config = configurationAdmin.getConfiguration(cd.getName());						if (config != null)							factoryPid = config.getFactoryPid();					} catch (IOException e) {						Log.log(1, "[SCR] Error attempting to create componentFactory. ", e);					}				}				// if MSF throw exception - can't be ComponentFactory and				// MSF				if (factoryPid != null) {					throw new org.osgi.service.component.ComponentException("ManagedServiceFactory and ConfigurationFactory are incompatible");				}				// if the factory attribute is set on the component element				// then register a component factory service				// for the Service Component on behalf of the Service				// Component.				cdp.setServiceRegistration(cd.getBundleContext().registerService(ComponentFactory.class.getName(), new ComponentFactoryImpl(cdp, main), cdp.getProperties()));				// if ServiceFactory or Service			} else if (cd.getService() != null) {				RegisterComponentService.registerService(this, cdp);			}		}// end while(more componentDescriptionProps)	}