Use proper reference to IResource.
Rename Resource to RootResource and update references.