public Object unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context) {
String identifier = null;
String outIdentifier = null;
GetGlobalCommand cmd = new GetGlobalCommand();
while ( reader.hasMoreChildren() ) {
reader.moveDown();
String nodeName = reader.getNodeName();
if ( "identifier".equals( nodeName ) ) {
identifier = reader.getValue();
} else if ( "out-identifier".equals( nodeName ) ) {
outIdentifier = reader.getValue();
}
reader.moveUp();
}
cmd.setIdentifier( identifier );
if ( outIdentifier != null ) {
cmd.setOutIdentifier( outIdentifier );
}
return cmd;
}