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