protected override void CustomizeEngine(Jint.JintEngine jintEngine)
 {
     jintEngine.SetFunction("DeleteDocument", ((Action<string>)(document => DocumentsToDelete.Remove(document))));
 }
 protected override void CustomizeEngine(Jint.JintEngine jintEngine)
 {
     jintEngine.SetFunction("DeleteDocument", ((Action<string>)(DeleteFromContext)));
 }