GraphConfigurationView configuration = createUserConfiguration(request);
if (configuration.hasMeaningfulGraph()) {
return configuration.getGraphRenderer(getUrlName());
}
else {
BuildResultGraph graphType = configuration.getGraphType();
try {
response.sendRedirect2(request.getContextPath() + graphType.getExampleImage());
}
catch (IOException exception) {
LOGGER.log(Level.SEVERE, "Can't create graph: " + graphType, exception);
}