XCOMMONS-421: Add API to dispose resources initialized by org.xwiki.environment.System