public void addComponent(IServiceInfo serviceInfo) {
String currentMeasure = selectedLeaf.getMeasure().getUri();
if (!openMeasures.contains(currentMeasure)) {
openMeasures.add(currentMeasure);
}
RecommendedComponent recommendedComponent = MyExperimentExecutablePlanGenerator.recommendComponent(serviceInfo,
openMeasures, targetMimetypes.get(selectedAlternative));
removeMeasureRecommendation(currentMeasure);
recommendedComponents.add(recommendedComponent);
openMeasures.removeAll(recommendedComponent.measures);