Routing is not using child class metadata

Currently, only the topmost class metadata is retrieved - this PR allows inheritances in resource metadata