code: function reducer(model, master, client) {
    const factory = new kevoree.factory.DefaultKevoreeFactory();
    const cloner = factory.createModelCloner();
  
    const clonedModel = cloner.clone(model);
  
    reduceNodes(clonedModel, master, client);
  
    reduceBindings(clonedModel, master, client);
  
    reduceChannels(clonedModel, master, client);
  
    reduceGroups(clonedModel, master, client);
  
    reducePackages(clonedModel, master, client);
  
    return clonedModel;
  }
docs: Reduces a clone of the given model to only the given "master"
  and "client" nodes (and their attached groups & bindings/channels)
  
  @param {Object} model    a Kevoree model
  @param {String} master   a Kevoree node name (eg. master node)
  @param {String} client   a Kevoree node name (eg. client node)