Fix quality flaws
SONAR-4118 Remove XStream from API dependencies
Fix quality flaw