IConfigurationElement[] entries = getExtensionRegistry().getConfigurationElementsFor(PI_RUNTIME, PT_PRODUCTS, productId);
IConfigurationElement[] entries = extensionRegistry.getConfigurationElementsFor(PI_RUNTIME, PT_PRODUCTS, productId);
	public IProduct getProduct() {		if (product != null)			return product;		// try commandLineProperties		String productId = CommandLineArgs.getProduct();		if (productId == null) {			// try bundleContext properties			if (context == null)				return null;			productId = context.getProperty(PROP_PRODUCT);			if (productId == null)				return null;		}		IConfigurationElement[] entries = getExtensionRegistry().getConfigurationElementsFor(PI_RUNTIME, PT_PRODUCTS, productId);		if (entries.length > 0) {			// There should only be one product with the given id so just take the first element			product = new Product(productId, entries[0]);			return product;		}		IConfigurationElement[] elements = getExtensionRegistry().getConfigurationElementsFor(PI_RUNTIME, PT_PRODUCTS);		List logEntries = null;		for (int i = 0; i < elements.length; i++) {			IConfigurationElement element = elements[i];			if (element.getName().equalsIgnoreCase("provider")) { //$NON-NLS-1$				try {					IProductProvider provider = (IProductProvider) element.createExecutableExtension("run"); //$NON-NLS-1$					IProduct[] products = provider.getProducts();					for (int j = 0; j < products.length; j++) {						IProduct provided = products[j];						if (productId.equalsIgnoreCase(provided.getId())) {							product = provided;							return product;						}					}				} catch (CoreException e) {					if (logEntries == null)						logEntries = new ArrayList(3);					logEntries.add(new FrameworkLogEntry(Activator.PI_APP, NLS.bind(Messages.provider_invalid, element.getParent().toString()), 0, e, null));				}			}		}		if (logEntries != null && Activator.getFrameworkLog() != null)			Activator.getFrameworkLog().log(new FrameworkLogEntry(Activator.PI_APP, Messages.provider_invalid_general, 0, null, (FrameworkLogEntry[]) logEntries.toArray(new FrameworkLogEntry[logEntries.size()])));		if (!missingProductReported && Activator.getFrameworkLog() != null) {			Activator.getFrameworkLog().log(new FrameworkLogEntry(Activator.PI_APP, NLS.bind(Messages.product_notFound, productId), 0, null, null));			missingProductReported = true;		}		return null;	}