public override void Init()
 {
     base.Init();
     elementCreator=new MessageElementCreator(xmiDocument,documentBuilder);
     parentElement=InteractionElementStub.CreateInteractionElementStub(xmiDocument);
     sourceLifelineElement=LifelineElementStub.CreateLifelineElementStub(xmiDocument,ID_LIFELINE_SOURCE);
     destinationLifelineElement=LifelineElementStub.CreateLifelineElementStub(xmiDocument,ID_LIFELINE_DESTINATION);
     modelElement=ModelElementStub.CreateModelElementStub(this.xmiDocument);
     modelElement.AppendChild(parentElement);
 }
 public XmlElement AddMessageElement(XmlElement parentElement, MSCItem messageItem,XmlElement sourceLifeLine,XmlElement destinationLifeLine)
 {
     MessageElementCreator elementCreator=new MessageElementCreator(xmiDocument,this);
     XmlElement newMessageElement=elementCreator.CreateMessageElement(parentElement,messageItem,sourceLifeLine,destinationLifeLine);
     return newMessageElement;
 }