{
newServerMessage = serverMessage.copy();
largeMessage = (LargeServerMessageImpl)serverMessage;
BodyEncoder encoder = largeMessage.getBodyEncoder();
encoder.open();
int bodySize = (int)encoder.getLargeBodySize();
//large message doesn't have a body.
((ServerMessageImpl)newServerMessage).createBody(bodySize);
encoder.encode(newServerMessage.getBodyBuffer(), bodySize);