/// <summary>
 /// Serializes the the artifact into the specified stream.
 /// </summary>
 /// <param name="artifact">The artifact.</param>
 /// <param name="outputStream">The output stream.</param>
 /// <exception cref="ArgumentNullException">outputStream</exception>
 /// <exception cref="ArgumentException">Stream was not writable.</exception>
 public static void Serialize(object artifact, Stream outputStream)
 {
     ModelUtility.WriteModel((AbstractModel)artifact, outputStream);
 }
 internal static void SerializeModel(object artifact, Stream outStream)
 {
     ModelUtility.WriteModel((AbstractModel)artifact, outStream);
 }