"p" ) );
cmds.add( new GetGlobalCommand( "xxx" ) );
cmds.add( new SetGlobalCommand( "yyy",
new Person( "yoda",
21 ) ) );
BatchExecutionCommandImpl batch = new BatchExecutionCommandImpl( cmds );
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT,
Boolean.TRUE );
ByteArrayOutputStream baos = new ByteArrayOutputStream();
marshaller.marshal( batch,
baos );
System.out.println( baos );
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
BatchExecutionCommandImpl batch2 = (BatchExecutionCommandImpl) unmarshaller.unmarshal( new ByteArrayInputStream( baos.toByteArray() ) );
baos = new ByteArrayOutputStream();
marshaller.marshal( batch2,
baos );
System.out.println( baos );
}