managedcontext local executed runnable

ManagedContext is skipped in case of a Local executed runnable because serialization is skipped. This pr fixes that problem.