}
public static void setDataAsync(CuratorFramework client, String path, byte[] payload) throws Exception
{
// this is one method of getting event/async notifications
CuratorListener listener = new CuratorListener()
{
@Override
public void eventReceived(CuratorFramework client, CuratorEvent event) throws Exception
{
// examine event for details