Java implementation of the Lacewing protocol