Map<String, Object> properties = new HashMap<>();
String layerId = HOME_STATE.equals(state) ? defaultLayerPid : state;
properties.put(SuiteEvent.LAYER, layerId);
properties.put(SuiteEvent.NODE_PATH, HOME_STATE);
ui.getCmsView().sendEvent(SuiteEvent.switchLayer.topic(), properties);
Map<String, Object> properties = new HashMap<>();
String layerId = HOME_STATE.equals(state) ? defaultLayerPid : state;
properties.put(SuiteEvent.LAYER, layerId);
properties.put(SuiteEvent.NODE_PATH, HOME_STATE);
ui.getCmsView().sendEvent(SuiteEvent.switchLayer.topic(), properties);