code: function intersectionMatches(a1, a2) {
          for (var i = 0, len = a1.length; i < len; ++i) {
            if (a1[i] !== a2[i]) {
              return false;
            }
          }
          return true;
        }
docs: We have to handle coalescing resource names that are prefixed with their parent's names, e.g. ['foo', 'foo.bar.baz'] => 'foo.bar.baz', not 'foo.foo.bar.baz'