*/
public void createAssociatedStereotype(Element e, String profileQualifiedName, String stereotypeName) {
applySysMLProfile(e.getModel(), profileQualifiedName);
final Element element = e;
final String stereotypeQualifiedName = profileQualifiedName + "::" + stereotypeName;
final Stereotype stereotype = element.getApplicableStereotype(stereotypeQualifiedName);
final EList<Stereotype> appliedStereotypes = element.getAppliedStereotypes();
if (stereotype == null) {
final String message = "Can't apply the setereotype " + stereotypeQualifiedName + " on "
+ element.toString();
Activator.log(Status.WARNING, message, null);
} else if (appliedStereotypes != null && appliedStereotypes.contains(stereotype)) {
final String message = "The stereotype " + stereotype.getQualifiedName()
+ " is already applied on " + element.toString();
Activator.log(Status.INFO, message, null);
} else {
element.applyStereotype(stereotype);
}
}