code: public static boolean getBoolProperty(final MessageResources msg,
                                          final String pname,
                                          final boolean def) throws Throwable {
      String p = msg.getMessage(pname);
      if (p == null) {
        return def;
      }
  
      return Boolean.valueOf(p);
    }
docs: Return a boolean property value or the default
  
  @param msg      MessageResources object
  @param pname    String name of the property
  @param def      boolean default value
  @return boolean property value or default
  @throws Throwable on error