use the hasModule() and getModule() methods instead of testing against the module name.