code: public static boolean getInitParamBoolean(ServletContext context, String name)
     {
        boolean result = false;
        String value = getInitParam(context, name, null);
        if ("true".equalsIgnoreCase(value))
        {
           result = true;
        }
        return result;
     }
docs: Retrieve the named context-parameter from the given {@link ServletContext}. If the parameter is not defined,
  return false, otherwise return the value as a boolean. If the value cannot be converted to a boolean type, return
  false.