Merge methods of root resources.

Hi this is a possible solution for the problem in #74.
I'm interested in using this feature in production environments so please if you can merge it and publish to maven central, or else let me know so I can analyze other options.