code: function(node) {
      for (var i = 0; i < ResourceCache._cached.length; i++) {
        if (ResourceCache._cached[i].node === node) {
          return ResourceCache._cached[i].resource;
        }
      }
      return null;
    }
docs: Do we already have a resource that was created for the given node