Source:
<code>private void stateResolveFragConstraints(ResolverBundle rb) { ResolverBundle host = (ResolverBundle) rb.getHost().getSelectedSupplier(); ImportPackageSpecification[] imports = rb.getBundleDescription().getImportPackages(); for (ImportPackageSpecification <START> import1 : <END> imports) { ResolverImport hostImport = host == null ? null : host.getImport(import1.getName()); ResolverExport export = (ResolverExport) (hostImport == null ? null : hostImport.getSelectedSupplier()); BaseDescription supplier = export == null ? null : export.getExportPackageDescription(); state.resolveConstraint(import1, supplier); } BundleSpecification[] requires = rb.getBundleDescription().getRequiredBundles(); for (BundleSpecification require : requires) { BundleConstraint hostRequire = host == null ? null : host.getRequire(require.getName()); ResolverBundle bundle = (ResolverBundle) (hostRequire == null ? null : hostRequire.getSelectedSupplier()); BaseDescription supplier = bundle == null ? null : bundle.getBundleDescription(); state.resolveConstraint(require, supplier); } GenericConstraint[] genericRequires = rb.getGenericRequires(); for (GenericConstraint genericRequire : genericRequires) { VersionSupplier[] matchingCapabilities = genericRequire.getMatchingCapabilities(); if (matchingCapabilities == null) { state.resolveConstraint(genericRequire.getVersionConstraint(), null); } else { for (VersionSupplier matchingCapabilitie : matchingCapabilities) { state.resolveConstraint(genericRequire.getVersionConstraint(), matchingCapabilitie.getBaseDescription()); } } } }</code><technical_language>name importSpecification</technical_language>

Target:
private void stateResolveFragConstraints(ResolverBundle rb) { ResolverBundle host = (ResolverBundle) rb.getHost().getSelectedSupplier(); ImportPackageSpecification[] imports = rb.getBundleDescription().getImportPackages(); for (ImportPackageSpecification importSpecification : imports) { ResolverImport hostImport = host == null ? null : host.getImport(importSpecification.getName()); ResolverExport export = (ResolverExport) (hostImport == null ? null : hostImport.getSelectedSupplier()); BaseDescription supplier = export == null ? null : export.getExportPackageDescription(); state.resolveConstraint(importSpecification, supplier); } BundleSpecification[] requires = rb.getBundleDescription().getRequiredBundles(); for (BundleSpecification require : requires) { BundleConstraint hostRequire = host == null ? null : host.getRequire(require.getName()); ResolverBundle bundle = (ResolverBundle) (hostRequire == null ? null : hostRequire.getSelectedSupplier()); BaseDescription supplier = bundle == null ? null : bundle.getBundleDescription(); state.resolveConstraint(require, supplier); } GenericConstraint[] genericRequires = rb.getGenericRequires(); for (GenericConstraint genericRequire : genericRequires) { VersionSupplier[] matchingCapabilities = genericRequire.getMatchingCapabilities(); if (matchingCapabilities == null) { state.resolveConstraint(genericRequire.getVersionConstraint(), null); } else { for (VersionSupplier matchingCapabilitie : matchingCapabilities) { state.resolveConstraint(genericRequire.getVersionConstraint(), matchingCapabilitie.getBaseDescription()); } } } }