wrapping MethodContext before loading
Merge pull request #587 from herby/fix-method-context-not-wrapped

wrapping MethodContext before loading