Added possibility to set generateInterfaces parameter