java resful service demo