// use a default name based on the current data
DateFormat df = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss.SS");
String snapshotName = df.format(new Date());
try {
runner.createSnapshot(snapshotName);
} catch (RunnerException re) {
LOGGER.warning("Error creating snapshot!");
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).cacheControl(NO_CACHE).build();
}