Java implementation of Rosetto base system