kar/src/main/java/org/apache/karaf/cellar/kar/shell/InstallKarCommand.java [42:63]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @Reference
    private EventProducer eventProducer;

    @Override
    protected Object doExecute() throws Exception {
        // check if the group exists
        Group group = groupManager.findGroupByName(groupName);
        if (group == null) {
            System.err.println("Cluster group " + groupName + " doesn't exist");
            return null;
        }

        // check if the producer is ON
        if (eventProducer.getSwitch().getStatus().equals(SwitchStatus.OFF)) {
            System.err.println("Cluster event producer is OFF");
            return null;
        }

        CellarSupport support = new CellarSupport();
        support.setConfigurationAdmin(configurationAdmin);
        support.setGroupManager(groupManager);
        support.setClusterManager(clusterManager);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



kar/src/main/java/org/apache/karaf/cellar/kar/shell/UninstallKarCommand.java [39:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @Reference
    private EventProducer eventProducer;

    @Override
    protected Object doExecute() throws Exception {
        // check if the group exists
        Group group = groupManager.findGroupByName(groupName);
        if (group == null) {
            System.err.println("Cluster group " + groupName + " doesn't exist");
            return null;
        }

        // check if the producer is ON
        if (eventProducer.getSwitch().getStatus().equals(SwitchStatus.OFF)) {
            System.err.println("Cluster event producer is OFF");
            return null;
        }

        CellarSupport support = new CellarSupport();
        support.setConfigurationAdmin(configurationAdmin);
        support.setGroupManager(groupManager);
        support.setClusterManager(clusterManager);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



