public override void Process(HttpRequestArgs arguments)
 {
     Assert.ArgumentNotNull(arguments, "arguments");
     try
     {
         Sitecore.ItemWebApi.Context current = Sitecore.ItemWebApi.Context.Current;
         if (current != null)
         {
             current.HttpContext = arguments.Context;
             current.Database    = Common.Functions.GetDatabase();
             current.Item        = Common.Functions.GetItem();
             current.Language    = Common.Functions.GetLanguage();
             CorePipeline.Run("itemWebApiRequest", new RequestArgs());
             arguments.AbortPipeline();
         }
     }
     catch (ThreadAbortException)
     {
     }
     catch (Exception exception)
     {
         ErrorReporter.SendErrorMessage(exception);
     }
 }
 /// <summary>
 /// This function identify if the context item is Media Item
 /// </summary>
 /// <param name="context"></param>
 /// <returns>bool is media item or not</returns>
 public static bool IsMediaItem(Sitecore.ItemWebApi.Context context)
 {
     return(IsMediaItem(context.Item));
 }