final String xml = IOUtils.toString(new FileInputStream(inputFileName), UTF_8);
final FileUtil fileUtil = new FileUtil();
fileUtil.setup(pluginParameters);
WrapperFactory wrapperFactory = new WrapperFactoryImpl(fileUtil);
((WrapperFactoryImpl) wrapperFactory).setup(pluginParameters);
final XmlProcessor xmlProcessor = new XmlProcessor(wrapperFactory);
xmlProcessor.setup(pluginParameters);
if (sortAlfabeticalOnly) {
wrapperFactory = new WrapperFactory() {
@Override
public HierarchyWrapper createFromRootElement(final Element rootElement) {
return new HierarchyWrapper(new AlphabeticalSortedWrapper(rootElement));
}