updated for java web filter