now generate clean Java API