code: public String getJ2EEName(DeployedModule webModuleConfig)
      {
          WebAppConfiguration webAppConfiguration = webModuleConfig.getWebAppConfig();
          WebModuleMetaData webModuleMetaData = webAppConfiguration.getMetaData();
          J2EEName j2eeName = webModuleMetaData.getJ2EEName();
          if(j2eeName==null) {
              String appName = webAppConfiguration.getApplicationName();
              String moduleName = webAppConfiguration.getModuleName();            
              return appName+"#"+moduleName;
          }
          return j2eeName.toString();
      }
docs: /*
  Construct internal j2ee representation