/// <summary>
 /// Updates a DOCLibrary to match the given <paramref name="specification"/>.
 /// <param name="docLibrary">A DOCLibrary.</param>
 /// <param name="specification">A new specification for the given DOCLibrary.</param>
 /// <returns>The updated DOCLibrary. Depending on the implementation, this might be the same updated instance or a new instance!</returns>
 /// </summary>
 public IDocLibrary UpdateDocLibrary(IDocLibrary docLibrary, DocLibrarySpec specification)
 {
     return(new UpccDocLibrary(UmlPackage.UpdatePackage(((UpccDocLibrary)docLibrary).UmlPackage, DocLibrarySpecConverter.Convert(specification))));
 }
 /// <summary>
 /// Creates a DOCLibrary based on the given <paramref name="specification"/>.
 /// <param name="specification">A specification for a DOCLibrary.</param>
 /// <returns>The newly created DOCLibrary.</returns>
 /// </summary>
 public IDocLibrary CreateDocLibrary(DocLibrarySpec specification)
 {
     return(new UpccDocLibrary(UmlPackage.CreatePackage(DocLibrarySpecConverter.Convert(specification))));
 }