public override void Init()
 {
     base.Init();
     elementCreator=new LifelineElementCreator(xmiDocument,documentBuilder);
     parentElement=InteractionElementStub.CreateInteractionElementStub(xmiDocument);
     modelElement=ModelElementStub.CreateModelElementStub(xmiDocument);
     collaborationElement=CollaborationElementStub.CreateCollaborationElementStub(xmiDocument);
     modelElement.AppendChild(collaborationElement);
     collaborationElement.AppendChild(parentElement);
 }
 public XmlElement AddLifelineElement(XmlElement parentElement,XmlElement collaborationElement,Process lifelineItem)
 {
     LifelineElementCreator elementCreator=new LifelineElementCreator(xmiDocument,this);
     XmlElement newLifelineElement=elementCreator.CreateLifelineElement(parentElement,collaborationElement,lifelineItem);
     return newLifelineElement;
 }