@Override
public Object unmarshal(
HierarchicalStreamReader reader,
UnmarshallingContext context
) {
CongressionalDistrict congressionalDistrict
= new CongressionalDistrict ();
String id = reader.getAttribute(ID);
congressionalDistrict.setId(id);
String totalObligatedAmount =
reader.getAttribute(TOTAL_OBLIGATED_AMOUNT);
congressionalDistrict.setTotaObligatedAmount(
new BigDecimal (totalObligatedAmount));
String rank = reader.getAttribute(RANK);
congressionalDistrict.setRank(Long.valueOf (rank));
String value = reader.getValue();
congressionalDistrict.setValue(value);
return congressionalDistrict;
}