bean.setService(service);
bean.setOtherService(service);
QName name = new QName("http://ns1", "bean");
JAXBElement<Object> element = new JAXBElement<Object>(name, Object.class, bean);
TransformationContext tContext = new TransformationContextImpl();
XMLStreamReader reader = new JAXB2XMLStreamReader().transform(element, tContext);
// XMLStreamReader2String t2 = new XMLStreamReader2String();
// String xml = t2.transform(reader, null);
// System.out.println(xml);
Object result = context.createUnmarshaller().unmarshal(reader, MyBean.class);