/** * Creates contributions for the host and boot classloaders. These contributions may be imported by extensions and user contributions. * * @throws InitializationException if there is an error synthesizing the contributions */ private void synthesizeContributions() throws InitializationException { try { // export packages included in JDK 6 synthesizeContribution(HOST_CONTRIBUTION, Java6HostExports.getExports(), hostCapabilities, hostClassLoader, true); // add default boot exports exportedPackages.putAll(BootExports.getExports()); bootContribution = synthesizeContribution(BOOT_CONTRIBUTION, exportedPackages, Collections.<String>emptyList(), bootClassLoader, true); } catch (ContributionException e) { throw new InitializationException(e); } }