private boolean listContainsDuplicate(List<ProvisioningFeatureDefinition> featureList, ProvisioningFeatureDefinition feature) {
        for (ProvisioningFeatureDefinition f : featureList) {
            if (hasSameSymbolicNameAndVersion(feature, f)) {
                return true;
            }
        }
        return false;
    }
private boolean listContainsDuplicate ( List < ProvisioningFeatureDefinition > featureList , ProvisioningFeatureDefinition feature ) { for ( ProvisioningFeatureDefinition f : featureList ) { if ( hasSameSymbolicNameAndVersion ( feature , f ) ) { return true ; } } return false ; }
Checks whether {@code featureList} contains a feature with the same name and version as {@code feature}.

@param featureList the list of features
@param feature the feature
@return {@code true} if {@code featureList} contains a feature with the same symbolic name and version as {@code feature}, otherwise {@code false}