code: @Override
      public ServiceRegistration<?> registerModuleMBean
                      (String appName,
                       String moduleName,
                       Container container,
                       String ddPath,
                       Iterator<IServletConfig> servletConfigs) {
  
          String serverName = locationAdmin.getServerName();
          ObjectName objectName = J2EEManagementObjectNameFactory.createModuleObjectName
                          (J2EEManagementObjectNameFactory.ModuleType.WebModule, moduleName, appName, serverName);
  
          ObjectName serverObjectName = J2EEManagementObjectNameFactory.createJ2EEServerObjectName(serverName);
          ObjectName jvmObjectName = J2EEManagementObjectNameFactory.createJVMObjectName(serverName);
  
          List<String> servletNames = new ArrayList<String>();
          while (servletConfigs.hasNext()) {
              IServletConfig servletConfig = servletConfigs.next();
              servletNames.add(servletConfig.getServletName());
          }
  
          int numServlets = servletNames.size();
          ObjectName[] servletObjectNames = new ObjectName[numServlets];
          for (int servletNo = 0; servletNo < numServlets; servletNo++) {
              String servletName = servletNames.get(servletNo);
              servletObjectNames[servletNo] = J2EEManagementObjectNameFactory.createServletObjectName(servletName, moduleName, appName, serverName);
          }
  
          return registerMBean(objectName, WebModuleMBean.class, new WebModule(objectName, serverObjectName, jvmObjectName, container, ddPath, servletObjectNames));
      }
docs: {@inheritDoc}