code: function(arr, prefix, start) {
        for(var i = 0, len = arr.length; i < len; i++) {
          var def = typeof arr[i] !== 'object' ?
            { id: prefix + arr[i] } :
            { id: prefix + arr[i].id, available: arr[i].available, isNotReservable: arr[i].isNotReservable };
  
          if(!rMap[def.id]) {
            addResourceToMap(rMap, def, start);
          }
        }
      }
docs: Adds a new resource to the resource map if a resource doesn't already exist
  with that id. Expects resources to be passed in as an array and will
  prefix each resource with the prefix specified.