XWIKI-10372: Refactor the Resource API
* Removed unnecessary dependency (thanks to Thomas Mortagne)