LOGGER.info("Written {} chart", pngFile);
}
catch (IOException e)
{
throw new ChartingException("Failed to create chart", e);
}
finally
{
if (pngOutputStream != null)
{
try
{
pngOutputStream.close();
}
catch (IOException e)
{
throw new ChartingException("Failed to create chart", e);
}
}
}
}