Extracting the class XStreamBuilderFactory from tests to main folder