// In Qpid 0-9 we create a separate sync-recover, sync-recover-ok pair to be "more" compliant
if(session.getProtocolVersion().equals(ProtocolVersion.v0_9))
{
MethodRegistry_0_9 methodRegistry = (MethodRegistry_0_9) session.getMethodRegistry();
AMQMethodBody recoverOk = methodRegistry.createBasicRecoverSyncOkBody();
session.writeFrame(recoverOk.generateFrame(channelId));
}
else if(session.getProtocolVersion().equals(ProtocolVersion.v0_91))
{
MethodRegistry_0_91 methodRegistry = (MethodRegistry_0_91) session.getMethodRegistry();