//Still not dumped
Registry registry = requestContext.getRegistry();
String path = requestContext.getResourcePath().getPath();
Writer writer = requestContext.getDumpingWriter();
// we wrap the writer with the monitored writer
MonitoredWriter monitoredWriter = new MonitoredWriter(writer);
registry.dump(path, monitoredWriter);
size = monitoredWriter.getTotalWritten();
requestContext.setProcessingComplete(true);
}
// persisting bandwidth
//RegistryUsagePersister.storeOutgoingBandwidth(tenantId, size);