* @throw JAXBException Upon error reading the XML file
*/
public static ModuleInfo decode(Reader r) throws JAXBException {
/* Read in from stream */
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
ModuleInfo info = (ModuleInfo)unmarshaller.unmarshal(r);
/* Convert array into hash map */
info.attributeMap.clear();
for (Attribute attribute : info.attributes) {
info.attributeMap.put(attribute.key, attribute.value);