code: public static Boolean coerceToBoolean(Object pValue,
                                            Logger pLogger)
              throws ELException {
          if (pValue == null ||
                  "".equals(pValue)) {
              return Boolean.FALSE;
          } else if (pValue instanceof Boolean) {
              return (Boolean) pValue;
          } else if (pValue instanceof String) {
              String str = (String) pValue;
              try {
                  return Boolean.valueOf(str);
              }
              catch (Exception exc) {
                  if (pLogger.isLoggingError()) {
                      pLogger.logError
                              (Constants.STRING_TO_BOOLEAN,
                                      exc,
                                      (String) pValue);
                  }
                  return Boolean.FALSE;
              }
          } else {
              if (pLogger.isLoggingError()) {
                  pLogger.logError
                          (Constants.COERCE_TO_BOOLEAN,
                                  pValue.getClass().getName());
              }
              return Boolean.TRUE;
          }
      }
docs: Coerces a value to a Boolean