throw new Exception("The message unit for '" + file.getAbsoluteFile() + "' is null");
if (msgUnit.getQosData() == null)
throw new Exception("The qos for message unit of '" + file.getAbsoluteFile() + "' is null");
Map subMap = msgUnit.getQosData().getClientProperties();
byte[] subContent = msgUnit.getContent();
dbWriter.update(topic, new ByteArrayInputStream(subContent), subMap);
}
}
}
}