support multiinstance.
update samples : change client endpoint.
new way to declare RW resource