/// <summary>
 /// Updates a PRIMLibrary to match the given <paramref name="specification"/>.
 /// <param name="primLibrary">A PRIMLibrary.</param>
 /// <param name="specification">A new specification for the given PRIMLibrary.</param>
 /// <returns>The updated PRIMLibrary. Depending on the implementation, this might be the same updated instance or a new instance!</returns>
 /// </summary>
 public IPrimLibrary UpdatePrimLibrary(IPrimLibrary primLibrary, PrimLibrarySpec specification)
 {
     return(new UpccPrimLibrary(UmlPackage.UpdatePackage(((UpccPrimLibrary)primLibrary).UmlPackage, PrimLibrarySpecConverter.Convert(specification))));
 }
 /// <summary>
 /// Creates a PRIMLibrary based on the given <paramref name="specification"/>.
 /// <param name="specification">A specification for a PRIMLibrary.</param>
 /// <returns>The newly created PRIMLibrary.</returns>
 /// </summary>
 public IPrimLibrary CreatePrimLibrary(PrimLibrarySpec specification)
 {
     return(new UpccPrimLibrary(UmlPackage.CreatePackage(PrimLibrarySpecConverter.Convert(specification))));
 }