HashSet<String> hsSubFeatureIDs = new HashSet<String>();
FeatureModelHelper.collectSubFeatureIDs(feature, hsSubFeatureIDs);
Set constraints = new HashSet();
constraints.clear();
constraints.addAll(featureModel.getAllFeatureRelation().values());
for (Iterator<FeatureRelation> itRelation = constraints.iterator(); itRelation.hasNext();) {
FeatureRelation relation = itRelation.next();
if (hsSubFeatureIDs.contains(relation.getStartFeature().getID()) || hsSubFeatureIDs.contains(relation.getEndFeature().getID())) {
featureModelEditor.removeRelation(relation.getID());