Don't need the iterator yet?
```
if (!nodeNames.isEmpty()) {
  name = Iterables.get(nodeNames, 0); // or nodeNames.iterator().next();
} else...
```