JAXBContext jc = JAXBContext.newInstance(KitchenWorldBasket.class);
Unmarshaller u = jc.createUnmarshaller();
Marshaller m = jc.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
try {
KitchenWorldBasket kwBasket = (KitchenWorldBasket)u.unmarshal(new File("src/shoppingCartData.xml"));
// Demonstrate adapter's unmarshal integrated data into HashMap properly
System.out.println(kwBasket.toString());
// Demonstate adapter's marshal writes the data properly
m.marshal(kwBasket, System.out);
} catch(javax.xml.bind.UnmarshalException e){
System.out.println("Main: " + e);