code: public static int type(String type)
      {
          if ("request".equalsIgnoreCase(type))
              return __REQUEST;
          if ("forward".equalsIgnoreCase(type))
              return __FORWARD;
          if ("include".equalsIgnoreCase(type))
              return __INCLUDE;
          if ("error".equalsIgnoreCase(type))
              return __ERROR;
          throw new IllegalArgumentException(type);
      }
docs: Dispatch type from name