pass the REST class to the filter