XWIKI-11179: Wiki based ConfigurationSource don't take into account the passed class
* improve String handling