createFilter

Creates a filter descriptor from the resource given with context.

If the resource can't be processed, returns null.

Parameters

context

The context providing the resource and a logging function