Refactor and reengineer alv-ch-java.