// create unmarshaller
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
// create an instance of ObjectModelFactory
ObjectModelFactory factory = new ConfigInfoBinding();
// let the object model factory to create an instance of Book and populate it with data from XML
ConfigInfo ci = (ConfigInfo)unmarshaller.unmarshal(is, factory, null);
// close the XML stream