Implements transformer that substitutes all invocations of resources
with ResourcesAccessor
Adds tests for metadata generators