XWIKI-10372: Refactor the Resource API
* Removed unused code