createFilter

Creates the filter for messages handled by this method.