Filters partly converted to java. Compiles ok. Performance testing needed.