Message destinationMessage) throws XException
{
/*
* First search if there is a special transformer for the two systems.
*/
Configuration config = Configuration.getInstance();
String transformerClassShortname = config.getValueOptional(
"Transformer", source.getName(), destination
.getName());
if (transformerClassShortname == null)
{
transformerClassShortname = config.getValueOptional(
"Transformer", getSection(source, sourceMessage), destination
.getName());
}
/*
* If not, take the standard transformer from xbus.conf
*/
config = Configuration.getInstance("xbus");
if (transformerClassShortname == null)
{
transformerClassShortname = config.getValue("Transformer",
sourceMessage.getShortname(), destinationMessage
.getShortname());
}
String transformerClass = Configuration.getClass("Transformer",