}
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() ) );
writer.addAttribute( "entry-point",
cmd.getEntryPoint() );
}
for ( Object element : cmd.getObjects() ) {
writeItem( element,
context,
writer );
}
}