java. Removed Func, added Invoker, RestHandler, fixed #283.