docs: function (interfaceMethods, interceptor, allInterceptors) {
          var interceptedMethods = allInterceptors || {};
          // for a callback, intercept all methods of an interface
          for (var i in interfaceMethods) {
              if (interfaceMethods.hasOwnProperty(i)) {
                  (interceptedMethods[i] || (interceptedMethods[i] = [])).push(interceptor);
              }
          }
          return interceptedMethods;
      }