working in RestfulWindow