public Entity GetEntity()
        {
            if (_defaultContext.IsEntityPresent()) // If CallContext has entity, return the entity
            {
                return(_defaultContext.GetEntity());
            }

            // If CallContext has no value, set the entity from HTTPContext into CallContext
            Entity entity = InjectEntityInTraceContext();

            return(entity);
        }