public MeasureConverter(Schema schema) {
this.schema = schema;
}
public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) {
Measure measure = (Measure)object;
writer.startNode("label");
writer.setValue(measure.getLabel());
writer.endNode();
writer.startNode("table");
writer.setValue(measure.getTable().getLabel());
writer.endNode();
}