Automatic deserialization of parameters for method handlers