Mhhh actually there is a problem with this. In the router, we need to fetch the resource metadata. This was possible due to the fact that we expected it to be an ObjectRepository, so we could get the class name from it. If we remove that, what should we do? Assume that "$resource" is used also to fetch the metadata?