/// <summary>
/// Creates an update of this chapter in the provided specification
/// </summary>
/// <param name="specification">The specification update</param>
/// <returns></returns>
public Chapter CreateChapterUpdate(Specification specification)
{
Chapter retVal = new Chapter();
retVal.setId(getId());
retVal.setUpdates(Guid);
specification.appendChapters(retVal);
ArrayList tmp = new ArrayList();
foreach (Chapter chapter in EnclosingSpecification.Chapters)
{
if (chapter.UpdatedBy != null)
{
tmp.Add(chapter.UpdatedBy);
}
if (chapter == this)
{
tmp.Add(retVal);
}
}
UpdatedBy.Add(retVal);
return retVal;
}