try {
//REVISIT - this is SUCH a hack. SDO needs to be able to
//go directly to some formats other than streams. They are working
//on stax, but not there yet.
RawByteArrayOutputStream bout = new RawByteArrayOutputStream();
new XMLHelperImpl(callback.getTypeHelper()).save(obj,
wrapperName.getNamespaceURI(),
wrapperName.getLocalPart(),
bout);
ByteArrayInputStream bin = new ByteArrayInputStream(bout.getBytes(),