try {
xFrm.newTransformer().transform(source, result);
} catch (TransformerConfigurationException e) {
logger.error(e.getCause() + "occourred during saving for \"" + fileName + "\" file. Message is: \"" + e.getLocalizedMessage() + "\"");
throw new GenericConfigurationTrasformException(e.getCause() + "occourred during saving for \"" + fileName + "\" file. Message is: \"" + e.getLocalizedMessage() + "\"");
} catch (TransformerException e) {
logger.error(e.getCause() + "occourred during saving for \"" + fileName + "\" file. Message is: \"" + e.getLocalizedMessage() + "\"");
throw new GenericConfigurationTrasformException(e.getCause() + "occourred during saving for \"" + fileName + "\" file. Message is: \"" + e.getLocalizedMessage() + "\"");
}
}