}
public Transformation create(final String transformationId) throws TransformationException {
try {
final Transformation transformation = Transformations.valueOf(transformationId);
return transformation;
} catch (NullPointerException ex) {
throw new TransformationException("could not parse transformation. Must be one of " + Arrays.toString(Transformations.values()), ex);
} catch (IllegalArgumentException ex) {
throw new TransformationException("invalid transformation: " + transformationId + ". Must be one of " + Arrays.toString(Transformations.values()), ex);