An Java implementation of CanTree