void writeHousehold(Household h) throws UncheckedIOException {
this.atts.clear();
atts.add(createTuple(HouseholdsSchemaV10Names.ID, h.getId().toString()));
this.writeStartTag(HouseholdsSchemaV10Names.HOUSEHOLD, atts);
if ((h.getMemberIds() != null) && !h.getMemberIds().isEmpty()){
this.writeMembers(h.getMemberIds());
}
if ((h.getVehicleIds() != null) && !h.getVehicleIds().isEmpty()) {
this.writeStartTag(HouseholdsSchemaV10Names.VEHICLES, null);
for (Id<Vehicle> id : h.getVehicleIds()){
atts.clear();
atts.add(createTuple(HouseholdsSchemaV10Names.REFID, id.toString()));
this.writeStartTag(HouseholdsSchemaV10Names.VEHICLEDEFINITIONID, atts, true);
}
this.writeEndTag(HouseholdsSchemaV10Names.VEHICLES);
}
if (h.getIncome() != null){
this.writeIncome(h.getIncome());
}
AttributesXmlWriterDelegate attributesWriter = new AttributesXmlWriterDelegate();
attributesWriter.putAttributeConverters(this.attributeConverters);
try {
this.writer.write(NL);
} catch (IOException e) {
e.printStackTrace();
}
attributesWriter.writeAttributes( "\t\t" , this.writer , h.getAttributes() );
this.writeEndTag(HouseholdsSchemaV10Names.HOUSEHOLD);
}