Add context setMethod resolver.

Signed-off-by: Toha <tohenk@yahoo.com>