code: function fromWire(source){
    var target = {};
    for (var key in source){  
     if ((key !== WIRE[DEVICE.Resources]) && source.hasOwnProperty(key)  && (source[key] !== null))
        target[FROMWIRE[key]] = source[key];
    };
    
    if (source.hasOwnProperty(WIRE[DEVICE.Resources]))
    {
      var resources = [];
      source[WIRE[DEVICE.Resources]].forEach(function(res){
        
        var targ = {};
        
        for (var key in res){  
          if ((key !== WIRE[RESOURCE.Policy]) && res.hasOwnProperty(key) && (res[key] !== null))
              targ[FROMWIRE[key]] = res[key];
        };
        
        if (res.hasOwnProperty(WIRE[RESOURCE.Policy]))
        {
          var pol = res[WIRE[RESOURCE.Policy]];  var policies = {};
          for (var key in pol){  
              if (pol.hasOwnProperty(key)  && (pol[key] !== null))
                pol[FROMWIRE[key]] = pol[key];
              };
          targ[RESOURCE.Policy] = policies;
        }    
        
        resources.push(targ);
     });
     
     target[DEVICE.Resources] = resources;   
    }
    
    return target;
  }
docs: /* ****
  Helper Methods