class XmlHelper {

  public static boolean readBooleanAttribute(XMLStreamReader reader, String attr,
      boolean defaultValue) {
    String a = reader.getAttributeValue(null, attr);
    if (a == null || a.isEmpty()) {
      return defaultValue;
    }
    return Boolean.parseBoolean(a);
  }

  private  XmlHelper();

}