anchor.diff:      ].
   
   
  -gen_server_stubs(Mod, ErlMod, FuncList) ->
  -    FuncClauses = [ gen_func_clause(X, Mod, ErlMod) || X <- FuncList ],
  +gen_server_stubs(Context, FuncList, Mod, ErlMod) ->
  +    FuncClauses = [ gen_func_clause(Context, X, Mod, ErlMod) || X <- FuncList ],
       [
           "rpc(Mod, Name, InputData, _InputFormat, _OutputFormat, Options) ->\n",
           "    try\n",
  
positive.code:             'undefined' -> % the function doesn't produce errors
                  [];
              _ ->
                  [[
  "                {error, Error} ->\n"
  "                    piqi_rpc_runtime:encode_error(?MODULE, fun ", ErlMod, ":gen_", ErlTypeName, "_error/1, <<\"", ScopedName, "-error\">>, _OutputFormat, Error, Options)"
                  ]]
          end,
  
  
negative.code:     ].
  
  
  gen_func_clause(Context, F, Mod, ErlMod) ->
      Name = F#func.name,
      ErlName = F#func.erlang_name,
      ScopedName = [ Mod, "/", Name ],
      InputCode =
          case F#func.input of
              'undefined' -> % the function doesn't have input
  