See https://github.com/xwiki/xwiki-commons/pull/3