WINK-377 - Add support for registering root resources with classes (rather then with instances) Applying patch provided by Reto Bachmann-Gmür.