Object m = req.getMessage();
if (m instanceof FileRegion) {
FileRegion file = (FileRegion) m;
try {
file.getFileChannel().position(file.getPosition() + file.getRemainingBytes());
file.update(file.getRemainingBytes());
} catch (IOException e) {
s.getFilterChain().fireExceptionCaught(e);
}
}
getFilterChain().fireMessageSent(req);