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