public static ArrayList < String > fixRequiredByFeature ( String fixApar , Map < String , ProvisioningFeatureDefinition > installedFeatures ) { ArrayList < String > dependencies = new ArrayList < String > ( ) ; for ( ProvisioningFeatureDefinition fd : installedFeatures . values ( ) ) { String requireFixes = fd . getHeader ( "IBM-Require-Fix" ) ; if ( requireFixes != null && requireFixes . length ( ) > 0 ) { String [ ] apars = requireFixes . split ( ";" ) ; for ( String apar : apars ) { if ( apar . trim ( ) . equals ( fixApar . trim ( ) ) ) { dependencies . add ( apar ) ; } } } } if ( dependencies . isEmpty ( ) ) return null ; return dependencies ; }
Determine the fix apar is required by one of the installed features