switch ( response.getMessageType() )
{
case ADD_RESPONSE:
// Transform the response
AddResponseCodec addRespCodec = (AddResponseCodec)response;
addRespCodec.addControl( response.getCurrentControl() );
addRespCodec.setMessageId( messageId );
AddResponse addResponse = convert( addRespCodec );
AddFuture addFuture = (AddFuture)responseFuture;