[BUG #7810] rename task to generate
[BUG #7810] remove duplicate method call