public void buildNames(Region r) {
    if (cancelled) {
      return;
    }

    Set nameSet = r.keySet();
    Iterator it = nameSet.iterator();
    objectNames = new HashSet();
    synchronized (r) {
      while (it.hasNext()) {
        if (cancelled) {
          break;
        }
        Object name = it.next();
        if (name instanceof String || name instanceof Number) {
          objectNames.add(name);
        } else {
          objectNames.add(new RemoteObjectName(name));
        }
      }
    }
  }
Returns a <code>ObjectNamesResponse</code> that will be returned to the specified recipient.
The message will contains a copy of the local manager's system config.
geode-core/src/main/java/org/apache/geode/internal/admin/remote/ObjectNamesResponse.java