private List<Transformer> getTransformerChain(DataType sourceDataType, DataType targetDataType) {
String sourceId = sourceDataType.getDataBinding();
String targetId = targetDataType.getDataBinding();
List<Transformer> path = transformerRegistry.getTransformerChain(sourceId, targetId);
if (path == null) {
TransformationException ex = new TransformationException("No path found for the transformation");
ex.addContextName("Source: " + sourceId);
ex.addContextName("Target: " + targetId);
throw ex;
}
return path;
}