Node attributes aren't available directly in library context, are they? You could do something like what the Java alternatives helper does, and set an instance variable locally:

```ruby
    def initialize(node)
      @node = node.to_hash
    .
    .
    end
```

and then continue from there, but referring to ```@node['foo']['bar']```