static Set<Node> from(CubeDockerConfiguration config) { Map<String, Node> nodes = new HashMap<>(); AutoStartParser autoStartParser = config.getAutoStartContainers(); if (autoStartParser != null) { nodes.putAll(autoStartParser.parse()); } // add all children links Map<String, Node> autoStartNodes = new HashMap<>(nodes); for (Map.Entry<String, Node> node : autoStartNodes.entrySet()) { addAll(nodes, config, node.getKey()); } return new HashSet<>(nodes.values()); }