/// <summary>
 /// Initializes the plugin for the specified Ultraviolet context.
 /// </summary>
 /// <param name="uv">The Ultraviolet context.</param>
 /// <param name="factory">The Ultraviolet factory.</param>
 public virtual void Initialize(UltravioletContext uv, UltravioletFactory factory)
 {
 }
 /// <summary>
 /// Initializes the specified factory.
 /// </summary>
 /// <param name="owner">The Ultraviolet context that owns the initializer.</param>
 /// <param name="factory">The <see cref="UltravioletFactory"/> to initialize.</param>
 public void Initialize(UltravioletContext owner, UltravioletFactory factory)
 {
     factory.SetFactoryMethod(owner.IsRunningInServiceMode ?
                              new SpriteBatchFactory((uv) => null) :
                              new SpriteBatchFactory((uv) => new SpriteBatch(uv)));
 }