code: private static void serializeBoolean(final Boolean val, final ContentHandler handler) throws SAXException {
      String tag = "false";
      if (val.booleanValue()) {
        tag = "true";
      }
      final AttributesImpl attributes = new AttributesImpl();
      handler.startElement(null, tag, tag, attributes);
      handler.endElement(null, tag, tag);
    }
docs: Serialize a Boolean as a true or false element.
  
  @param val
  boolean to serialize.
  @param handler
  destination of serialization events.
  @throws SAXException
  if exception during serialization.