The command class is already defined. I didn't understood what exactly you mean to say. The same structure is applied everywhere in the project and everything else runs perfect. I am not able to understand why only this module fails to load for the first time.
Did you mean to say that I need to set the command class and command name in the constructor of the controller ?
for e.g :
I tried it with the above code too but it didn't help.
Please can you give me an example related to my code or explain a little more detail about the code ?