public void encode( ByteBuffer buf, ChangePasswordRequest message ) throws IOException
{
// Build application request bytes
ApplicationRequest appRequest = message.getAuthHeader();
ApplicationRequestEncoder appEncoder = new ApplicationRequestEncoder();
byte[] encodedAppRequest = appEncoder.encode( appRequest );
// Build private message bytes
PrivateMessage privateMessage = message.getPrivateMessage();
PrivateMessageEncoder privateEncoder = new PrivateMessageEncoder();
byte[] privateBytes = privateEncoder.encode( privateMessage );