The legacy strainer Java 6 code