Simple dynamic Java generation works