docs: public IServletWrapper getServletWrapper(String servletName, boolean addMapping) throws Exception // PK61140
      {
          IServletWrapper targetWrapper = null;
  
          IServletConfig sconfig = config.getServletInfo(servletName);
          if (sconfig != null) {
              IServletWrapper existingServletWrapper = sconfig.getServletWrapper();
              if (existingServletWrapper != null)
                  return existingServletWrapper;
          }
  
          // Retrieve the list of mappings associated with 'servletName'
          List<String> mappings = config.getServletMappings(servletName);
  
          if (mappings != null) {
              for (String mapping : mappings) {
                  if (mapping.length() > 0 && mapping.charAt(0) != '/' && mapping.charAt(0) != '*')
                      mapping = '/' + mapping;
                  RequestProcessor p = requestMapper.map(mapping);
                  if (p != null) {
                      if (p instanceof IServletWrapper) {
                          if (((IServletWrapper) p).getServletName().equals(servletName)) {
                              targetWrapper = (IServletWrapper) p;
                              break;
                          }
                      }
                  }
              }
          }
  
          if (targetWrapper != null)
              return targetWrapper;
  
          // Begin 650884
          // PK61140 - Starts
          // String path = BY_NAME_ONLY + servletName;
          // RequestProcessor p = requestMapper.map(path);
          // // RequestProcessor p = requestMapper.map(BY_NAME_ONLY + servletName);
          //
          // // PK61140 - Ends
          //       
          //
          // if (p != null)
          // if (p instanceof ServletWrapper) {
          // if (((ServletWrapper) p).getServletName().equals(servletName))
          // targetWrapper = (ServletWrapper) p;
          // }
          //
          // if (targetWrapper != null)
          // return targetWrapper;
          // End 650884
  
          if (sconfig == null) {
              int internalIndex;
              if ((internalIndex = getInternalServletIndex(servletName)) >= 0) {
                  sconfig = loadInternalConfig(servletName, internalIndex);
              } else {
                  // Not found in DD, and not an Internal Servlet, stray??
                  //
                  return null;
              }
  
          }
  
          // return webExtensionProcessor.createServletWrapper(sconfig); //
          // PK61140
          // PK61140 - Starts
          IServletWrapper sw = webExtensionProcessor.createServletWrapper(sconfig);
  
          // Begin 650884
          // if ((sw != null)) {
          // if (addMapping) {
          // synchronized (sconfig) {
          // if (!requestMapper.exists(path)) {
          // requestMapper.addMapping(path, sw);
          // }
          // }
          // }
          // }
          // End 650884
          return sw;
          // PK61140 - Ends
      }