Source:
<code>private InstallationChecker() throws ProvisionException { this.iuFamilies = new HashMap<String, BundleFamilyExtension>(); for (IConfigurationElement extension : Platform.getExtensionRegistry().getConfigurationElementsFor(EXTENSION_POINT_ID)) { String familyId = extension.getAttribute("familyId"); String label = extension.getAttribute("label"); String urlKey = extension.getAttribute("urlKey"); String url = PropertiesHelper.getPropertiesProvider().getValue(urlKey); String contributingBundleId = extension.getContributor().getName(); URL listingFileResource = Platform.getBundle(contributingBundleId).getEntry(extension.getAttribute("listingFile")); this.iuFamilies.put(familyId, new BundleFamilyExtension(familyId, label, listingFileResource, url)); if (listingFileResource == null) { JBossCentralActivator.log("Could not load default listing file for " + familyId); } } IProvisioningAgentProvider provider = (IProvisioningAgentProvider) PlatformUI.getWorkbench().getService(IProvisioningAgentProvider.class); IProvisioningAgent agent; agent = provider.createAgent(null); if (agent == null) { throw new ProvisionException("Location was not provisioned by p2"); } IProfileRegistry profileRegistry = (IProfileRegistry) agent.getService(IProfileRegistry.SERVICE_NAME); if (profileRegistry == null) { throw new ProvisionException("Unable to acquire the profile registry service."); } this.applicationProfile = profileRegistry.getProfile(IProfileRegistry.SELF); if(this.applicationProfile == null) { <START> throw new ProvisionException("Current Eclipse instance doesn't support software installation."); <END> } this.installedUnitsPerFamily = new HashMap<String, Set<IInstallableUnit>>(); }</code><technical_language>></technical_language>

Target:
private InstallationChecker() throws ProvisionException { this.iuFamilies = new HashMap<String, BundleFamilyExtension>(); for (IConfigurationElement extension : Platform.getExtensionRegistry().getConfigurationElementsFor(EXTENSION_POINT_ID)) { String familyId = extension.getAttribute("familyId"); String label = extension.getAttribute("label"); String urlKey = extension.getAttribute("urlKey"); String url = PropertiesHelper.getPropertiesProvider().getValue(urlKey); String contributingBundleId = extension.getContributor().getName(); URL listingFileResource = Platform.getBundle(contributingBundleId).getEntry(extension.getAttribute("listingFile")); this.iuFamilies.put(familyId, new BundleFamilyExtension(familyId, label, listingFileResource, url)); if (listingFileResource == null) { JBossCentralActivator.log("Could not load default listing file for " + familyId); } } IProvisioningAgentProvider provider = (IProvisioningAgentProvider) PlatformUI.getWorkbench().getService(IProvisioningAgentProvider.class); IProvisioningAgent agent; agent = provider.createAgent(null); if (agent == null) { throw new ProvisionException("Location was not provisioned by p2"); } IProfileRegistry profileRegistry = (IProfileRegistry) agent.getService(IProfileRegistry.SERVICE_NAME); if (profileRegistry == null) { throw new ProvisionException("Unable to acquire the profile registry service."); } this.applicationProfile = profileRegistry.getProfile(IProfileRegistry.SELF); if(this.applicationProfile == null) { throw new ProvisionException("Current Eclipse instance does not support software installation."); } this.installedUnitsPerFamily = new HashMap<String, Set<IInstallableUnit>>(); }