}
public void marshal(Object object,
HierarchicalStreamWriter writer,
MarshallingContext context) {
InsertObjectCommand cmd = (InsertObjectCommand) object;
if ( cmd.getOutIdentifier() != null ) {
writer.addAttribute( "out-identifier",
cmd.getOutIdentifier() );
writer.addAttribute( "return-object",
Boolean.toString( cmd.isReturnObject() ) );
}
writeItem( cmd.getObject(),
context,
writer );
}