InputStream in = config.openStream();
// create unmarshaller
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
// create an instance of ObjectModelFactory
ObjectModelFactory factory = new ProfileMetaDataFactory();
// let the object model factory to create an instance of Map and populate it with data from XML
meta = (ProfileMetaData)unmarshaller.unmarshal(in, factory, null);
// close the XML stream