* @param xml The XML file byte content
* @throws InvalidModuleXmlException
* @throws ModuleUpgradeException
*/
public XmlModule(byte[] xml) throws InvalidModuleXmlException, ModuleUpgradeException {
byte[] newXml = new ModuleUpgrade().upgrade(xml);
boolean same = newXml.length == xml.length;
if (same) {
for (int i = 0; i < newXml.length; i++)
same &= newXml[i] == xml[i];