boolean seekingRules = true;
        int stepCount = path.getStepCount();
        for (int i = 0; i < stepCount && seekingRules; i++) {
            Step step = path.getStep(i);
            if (step instanceof PropertyStep) {
                PropertyStep property = (PropertyStep) step;
                if (ThemeModel.RULES.getName().equals(property.getProperty())) {
                    if ((i + 1) < stepCount) {
                        Step deviceIndexStep = path.getStep(i + 1);
                        if (deviceIndexStep instanceof IndexedStep) {
                            int deviceThemeIndex = ((IndexedStep) deviceIndexStep).getIndex();
                            ISelection newSelection = new StructuredSelection(ruleTable.getElementAt(deviceThemeIndex));