class RestfulServerDemo implements RestfulService {
    public static void main(String[] args) throws Exception {<FILL_FUNCTION_BODY>}

    @Override
    public List<User> getUsers(@CookieParam("uid") int uid) {
        return Arrays.asList(new User(uid, "name" + uid));
    }

    @Override
    public String testPrimitiveType() {
        return "helloworld!";
    }

    @Override
    public Response add(@FormParam("id") int id, @FormParam("name") String name) {
        return Response.ok().cookie(new NewCookie("ck", String.valueOf(id))).entity(new User(id, name)).build();
    }

    @Override
    public void testException() {
        throw new UnsupportedOperationException("unsupport");
    }
}

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:motan_demo_server_restful.xml");
        System.out.println("restful server start...");
        Thread.sleep(Long.MAX_VALUE);
    
<no_super_class>