internal static bool IsEnhanced(HttpEntity entity) { if (entity != null && Proxy.IsProxyClass(entity.GetType())) { InvocationHandler handler = Proxy.GetInvocationHandler(entity); return(handler is RequestEntityExecHandler); } else { return(false); } }