public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { if (context.get(IN_NESTED) == null) { context.put(IN_NESTED, true); try { return super.unmarshal(reader, context); } finally { context.put(IN_NESTED, false); } } else return leafLabelConverter.unmarshal(reader, context); }
public void marshal( Object source, HierarchicalStreamWriter writer, MarshallingContext context) { if (context.get(IN_NESTED) == null) { context.put(IN_NESTED, true); try { super.marshal(source, writer, context); } finally { context.put(IN_NESTED, false); } } else leafLabelConverter.marshal(source, writer, context); }