Apache curator discovery example for service register and service discovery