code: public static boolean getBooleanInitParameter(ExternalContext context, String name, boolean defaultValue)
      {
          if (name == null)
          {
              throw new NullPointerException();
          }
  
          String param = getStringInitParameter(context, name);
          if (param == null)
          {
              return defaultValue;
          }
          else
          {
              return Boolean.parseBoolean(param.toLowerCase());
          }
      }
docs: Gets the boolean init parameter value from the specified context. If the parameter was not specified, the default
  value is used instead.
  
  @param context
  the application's external context
  @param name
  the init parameter's name
  @param deprecatedName
  the init parameter's deprecated name.
  @param defaultValue
  the default value to return in case the parameter was not set
  
  @return the init parameter value as a boolean
  
  @throws NullPointerException
  if context or name is <code>null</code>