code: private void removeAttributesNetUI(ServletContext servletContext) {
          try {
              LinkedList list = new LinkedList();
              Enumeration enumeration = servletContext.getAttributeNames();
              while(enumeration.hasMoreElements()) {
                  String string = (String)enumeration.nextElement();
                  if(string.startsWith(InternalConstants.ATTR_PREFIX))
                      list.add(string);
              }
  
              for(int i = 0; i < list.size(); i++) {
                  Object key = list.get(i);
                  assert key != null;
                  assert key instanceof String;
                  LOG.trace("Removing ServletContext attribute named \"" + key + "\"");
                  servletContext.removeAttribute((String)key);
              }
          }
          catch(Exception e) {
              LOG.error("Caught error removing NetUI attribute from ServletContext.  Cause: " + e, e);
          }
      }
docs: Remove the NetUI related attributes from the {@link ServletContext}.
  
  @param servletContext the servelt context