return transformer;
}
private static Transformer newXMLBindingTransformer(final QName from, final QName to, Smooks smooks, XMLBindingTransformer.BindingDirection direction) {
ModelSet beanModel = ModelSet.get(smooks.getApplicationContext());
if (beanModel != null && !beanModel.getModels().isEmpty()) {
return new XMLBindingTransformer(from, to, smooks, beanModel, direction);
} else {
throw TransformMessages.MESSAGES.invalidBindingConfiguration(direction.toString());
}
}