boolean containFeature ( Map < String , ProvisioningFeatureDefinition > installedFeatures , String feature ) { if ( installedFeatures . containsKey ( feature ) ) return true ; for ( ProvisioningFeatureDefinition pfd : installedFeatures . values ( ) ) { String shortName = InstallUtils . getShortName ( pfd ) ; if ( shortName != null && shortName . equalsIgnoreCase ( feature ) ) return true ; } return false ; }
Checks if the feature is in installedFeatures