Apply filtercriteria to DoctrineMetadataRepository methods that query the database and apply visitors on the resulting entities.