It would be nice to add a unit test for this class. It is trivial enough (so tests should be trivial too), but this will help preventing issues if this filter is refactored (tests are specially important in jclouds-core).