final String filePath = input.readUTF();
context.executeAsync(new ManagementRequestContext.AsyncTask<Void>() {
@Override
public void execute(ManagementRequestContext<Void> context) throws Exception {
final File localPath = processRequest(rootId, filePath);
final FlushableDataOutput output = writeGenericResponseHeader(context);
try {
writeResponse(localPath, output);
output.close();
} finally {
StreamUtils.safeClose(output);
}
}
});