public void encode( ByteBuffer buf, ChangePasswordReply message ) throws IOException
{
// Build application reply bytes
ApplicationReply appReply = message.getApplicationReply();
ApplicationReplyEncoder appEncoder = new ApplicationReplyEncoder();
byte[] encodedAppReply = appEncoder.encode( appReply );
// Build private message bytes
PrivateMessage privateMessage = message.getPrivateMessage();
PrivateMessageEncoder privateEncoder = new PrivateMessageEncoder();
byte[] privateBytes = privateEncoder.encode( privateMessage );