String cuid = cmd.getString(Tag.AffectedSOPClassUID);
String iuid = cmd.getString(Tag.AffectedSOPInstanceUID);
String tuid = eventInfo.getString(Tag.TransactionUID);
File file = new File(storageDir, tuid );
DicomOutputStream out = null;
LOG.info("{}: M-WRITE {}", as, file);
try {
out = new DicomOutputStream(file);
out.writeDataset(
Attributes.createFileMetaInformation(iuid, cuid,
UID.ExplicitVRLittleEndian),
eventInfo);
} catch (IOException e) {
LOG.warn(as + ": Failed to store Storage Commitment Result:", e);