code: private void render(SVG.Switch obj)
     {
        debug("Switch render");
  
        updateStyleForElement(state, obj);
  
        if (!display())
           return;
  
        if (obj.transform != null) {
           canvas.concat(obj.transform);
        }
  
        checkForClipPath(obj);
  
        boolean  compositing = pushLayer();
  
        renderSwitchChild(obj);
  
        if (compositing)
           popLayer(obj);
  
        updateParentBoundingBox(obj);
     }
docs: /*
  Find the first child of the switch that passes the feature tests and render only that child.