private void doExpandChildren(List<Node> nodes) {
                for (Node node : nodes) {
            if(node instanceof TitledPane){
                TitledPane tPane = (TitledPane) node;
                tPane.setExpanded(true);
            }
        }
    }