private static void listCoordinates() { try { final List<String> nodeList = new ArrayList<String>(); cloudname.listRecursively(nodeList); for (final String node : nodeList) { final Matcher m = instanceConfigPattern.matcher(node); /* * We only parse config paths, and we convert these to * Cloudname coordinates to not confuse the user. */ if (m.matches()) { System.out.printf("%s.%s.%s.%s\n", m.group(4), m.group(3), m.group(2), m.group(1)); } } } catch (final CloudnameException e) { System.err.println("Got error: " + e.getMessage()); } catch (final InterruptedException e) { System.err.println("Got error: " + e.getMessage()); } }