code: function registerObject(mediaObject, id) {
      var object = objects[id];
      if (object) return object;
  
      mediaObject.emit('_id', null, id);
  
      objects[id] = mediaObject;
  
      /**
       * Remove the object from cache
       */
      mediaObject.once('release', function () {
        delete objects[id];
      });
  
      return mediaObject;
    }
docs: @function module:kurentoClient.KurentoClient~registerObject
  
  @param {module:core/abstracts.MediaObject} mediaObject
  @param {external:string} id