Marshaller marshaller;
marshaller = new Marshaller( writer );
marshaller.setMapping( _mapping );
db.begin();
marshaller.marshal( db.load( Product.class, new Integer( 4 ) ) );
computerOql = db.getOQLQuery( "SELECT c FROM myapp.Computer c" );
results = computerOql.execute();
while( results.hasMore() )
marshaller.marshal( results.next() );