{
container = new PendingBinaryFile();
mapPendingBinaryFile.put(packet.getIdentifier(), container);
}
ChangesFile chf;
synchronized (container)
{
chf = container.getChangesFile(packet.getOwnerName(), packet.getFileName());
if (chf == null)
{
chf =
container.addChangesFile(packet.getOwnerName(), packet.getFileName(), packet.getSystemId(), packet
.getTotalPacketCount());
}
}
chf.write(packet.getOffset(), packet.getByteArray());
if (chf.isStored())
{
if (log.isDebugEnabled())
log.debug("Last packet of file has been received : " + packet.getFileName());
}