String name = element.getAttribute("name");
String type = element.getName();
if (type.equals("transformation")) {
ITransformation instance = (ITransformation) element
.createExecutableExtension("class");
transformations.add(new Transformation(instance));
} else if (type.equals("xslt")) {
transformations.add(new Transformation(name));
} else {
throw new IllegalArgumentException("Unknown type: " + type);
}
}
}