PackageInfo(PackageRuntime pkg, Identity identity, CliPlugin plugin) throws IOException, ProvisioningException { this.pkg = pkg; this.fpid = pkg.getFeaturePackRuntime().getFPID(); this.identity = identity; this.contentDir = pkg.getContentDir(); this.spec = pkg.getSpec(); customContent = plugin == null ? null : plugin.handlePackageContent(pkg); if (customContent == null) { fillContent(); } }