Rewrite logic of application using interface Filter