code: function updateCurrentService() {
    for(var serviceName in this.services) {
      // find first not idle service
      var serviceProperties = this.services[serviceName];
      if(serviceProperties.state != 'idle') {
        this._setService(serviceName);
        return;
      }
    }
    this._clearService(); // no active network found, clear current service
  }
docs: ******************
  Private functions
  ******************