Adds the old java reference code.