}
}
private String findNextNodeName(ChefService client, String pattern) {
ChefApi api = client.getContext().getApi(ChefApi.class);
Set<String> nodes = api.listNodes();
String nodeName;
Set<String> names = newHashSet(nodes);
int index = 0;
while (true) {
nodeName = String.format(pattern, index++);