String generatorId = output.getGenerator();
String transformationId = output.getTransformation();
try {
logger.info("start processing zmap output...");
final ImageCreator creator = imageCreatorFactory.create(generatorId);
final Transformation transformation = transformationFactory.create(transformationId);
creator.setOutputConfiguration(output);
creator.setScene(scene);
creator.setBackgroundImageProvider(backgroundImageProvider);
creator.setTransformation(transformation);
creator.create();
} catch (ImageCreatorException e) {
logger.error("could not create ImageCreator for generator " + generatorId + ": " + e.getMessage());
} catch (TransformationException e) {
logger.error("could not create Transformation for transformation " + transformationId + ": " + e.getMessage());