fix bug : race condition after message resolution
refactoring demonstrateur OTB