try {
out = new BufferedOutputStream(new FileOutputStream(outputFileName));
in = new BufferedInputStream(new FileInputStream(inputFileName));
final MabToMabxmlConverter converter = new MabToMabxmlConverter();
final ConversionParameters params = new ConversionParameters();
params.setAddDoctype(true);
params.setAddCollectionHeader(true);
params.setAddCollectionFooter(true);
params.setSourceCharset("x-MAB");
params.setTargetCharset("UTF-8");
converter.convert(in, out, params);
LOGGER.info("Start conversion...\n");
converter.convert(in, out, params);