cmd.getObject() );
}
public Object unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context) {
InsertObjectCommand cmd = new InsertObjectCommand();
while ( reader.hasMoreChildren() ) {
reader.moveDown();
String nodeName = reader.getNodeName();
if ( "out-identifier".equals( nodeName ) ) {
cmd.setOutIdentifier( reader.getValue() );
} else if ( "return-object".equals( nodeName ) ) {
cmd.setReturnObject( Boolean.parseBoolean( reader.getValue() ) );
} else if ( "object".equals( nodeName ) ) {
cmd.setObject( readValue( reader,
context,
cmd.getObject(),
"object" ) );
}
reader.moveUp();
}