code: function replaceRules (rules) {
      // create new non global instance
      var accessControl = new ImmutableAccessControl({global: false})
      // set default rules from current instance
      accessControl.setRules(this.defaultRules)
      // set new rules
      accessControl.setRules(rules)
      // replace local rules
      this.rules = accessControl.rules
      // clear rule id
      this.id = undefined
  }
docs: @function replaceRules
  
  replace rules for global instance.
  
  @param {array} rules
  
  @throws {Error}