code: public static Map createInitParamMap(PageContext pContext)
      {
          final ServletContext context = pContext.getServletContext();
  
          return new EnumeratedMap()
          {
              public Enumeration enumerateKeys()
              {
                  return context.getInitParameterNames();
              }
  
              public Object getValue(Object pKey)
              {
                  if (pKey instanceof String) {
                      return context.getInitParameter((String) pKey);
                  } else {
                      return null;
                  }
              }
  
              public boolean isMutable()
              {
                  return false;
              }
          };
      }
docs: Creates the Map that maps init parameter name to single init
  parameter value.