private Boolean getBooleanAttribute(String attributeName, Boolean defaultValue, Element from) {
        try {
            return asBoolean(from.getAttribute(attributeName), defaultValue);
        }
        catch (IllegalArgumentException e) {
            throw new IllegalArgumentException("Attribute '" + attributeName, e);
        }
    }
Returns the given attribute as a boolean, using the semantics of {@link #asBoolean}
container-search/src/main/java/com/yahoo/search/query/profile/config/QueryProfileXMLReader.java