OnseiGenerator and TextFormatter in Java