Recompiled the legacy wrapper in java 6