// to watch the network's status key for notification once the configuration
// change is complete.
data.watch(context.status(), MapEvent.Type.CHANGE, new Handler<MapEvent<String, String>>() {
@Override
public void handle(MapEvent<String, String> event) {
if (event.value() != null && event.value().equals(context.version())) {
// The network's configuration has been completely updated. Stop watching
// the network's status key and call the async handler.
data.unwatch(context.status(), null, this, new Handler<AsyncResult<Void>>() {
@Override
public void handle(AsyncResult<Void> result) {