public Spatial oldDeepClone() {
        Node nodeClone = (Node) super.clone();
        nodeClone.children = new SafeArrayList<>(Spatial.class);
        for (Spatial child : children) {
            Spatial childClone = child.deepClone();
            childClone.parent = nodeClone;
            nodeClone.children.add(childClone);
        }
        return nodeClone;
    }
Convenience wrapper.

@param <T> the type of Spatial returned
@param nameRegex regular expression to match Spatial names against, or null for all spatials
@return a new list of pre-existing spatials (may be empty)
@see #descendantMatches(java.lang.Class, java.lang.String)
jme3-core/src/main/java/com/jme3/scene/Node.java