- Correct implemenation for filtering messages to corresponding application