private void buildDefaultConfigurationList ( ManifestFileProcessor mfp ) { for ( Map . Entry < String , ProvisioningFeatureDefinition > entry : features . entrySet ( ) ) { ProvisioningFeatureDefinition feature = entry . getValue ( ) ; Collection < FeatureResource > featureResources = feature . getConstituents ( SubsystemContentType . BUNDLE_TYPE ) ; for ( FeatureResource featureResource : featureResources ) { Set < String > featureSet = bundleNameToFeaturesMap . get ( featureResource ) ; if ( featureSet == null ) { featureSet = new HashSet < String > ( ) ; bundleNameToFeaturesMap . put ( featureResource , featureSet ) ; } featureSet . add ( feature . getSymbolicName ( ) ) ; } } }
Build a map of bundles to the features that enable them .