protected void marshalObject(Object item,HierarchicalStreamWriter writer,MarshallingContext context){
  String nodeLabel=mapper.serializedClass(item.getClass());
  writer.startNode(nodeLabel);
  context.convertAnother(item);
  writer.endNode();
}

protected void marshalObject ( Object item , HierarchicalStreamWriter writer , MarshallingContext context ) { String nodeLabel = mapper . serializedClass ( item . getClass ( ) ) ; writer . startNode ( nodeLabel ) ; context . convertAnother ( item ) ; writer . endNode ( ) ; }
utility method to write a child object to the output stream .
