public XMLElement toXML(boolean includeEvents) {
XMLElement xmlResult = new XMLElement("auction");
xmlResult.setProperty("id", getIdentifier());
AuctionInfo ai = findByIdOrIdentifier(getAuctionId(), getIdentifier());
xmlResult.addChild(ai.toXML());
if(isBidOn()) {
XMLElement xbid = new XMLElement("bid");
xbid.setEmpty();
xbid.setProperty("quantity", Integer.toString(getBidQuantity()));