}
public void marshal(Object object,
HierarchicalStreamWriter writer,
MarshallingContext context) {
QueryCommand cmd = (QueryCommand) object;
writer.startNode( "out-identifier" );
writer.setValue( cmd.getOutIdentifier() );
writer.endNode();
writer.startNode( "name" );
writer.setValue( cmd.getName() );
writer.endNode();
if ( cmd.getArguments() != null && cmd.getArguments().size() > 0 ) {
writer.startNode( "args" );
for ( Object arg : cmd.getArguments() ) {
writeItem( arg,
context,
writer );
}
writer.endNode();