public void detachModule(Class<? extends Module> moduleClass){
synchronized (curState) {
    Module module=getModule(moduleClass);
    if (module != null) {
      module.pause(true);
      modules.remove(module);
    }
  }
}

public void detachModule ( Class < ? extends Module > moduleClass ) { synchronized ( curState ) { Module module = getModule ( moduleClass ) ; if ( module != null ) { module . pause ( true ) ; modules . remove ( module ) ; } } }
detaches the module of the dialogue system . if the module is not included in the system , does nothing .
