Fix logic error in FirstInChain handling
Add support for javax.servlet.Filter