Message singleChannelMessage;
if (message.isDirectPrint()) {
singleChannelMessage = setMapAndMessageToPrint(message, documentsAndContent, documentsAndInputstream);
if (singleChannelMessage.hasAnyDocumentRequiringEncryption()) {
eventLogger.log("Direkte print. Bruker krypteringsnøkkel for print.");
<BUG>publicKeys = optional(getEncryptionKeyForPrint());
</BUG>
}
} else if (!message.recipient.hasPrintDetails() && !message.hasAnyDocumentRequiringEncryption()) {
singleChannelMessage = setMapAndMessageToDigipost(message, documentsAndContent, documentsAndInputstream);

Message singleChannelMessage;
if (message.isDirectPrint()) {
singleChannelMessage = setMapAndMessageToPrint(message, documentsAndContent, documentsAndInputstream);
if (singleChannelMessage.hasAnyDocumentRequiringEncryption()) {
eventLogger.log("Direkte print. Bruker krypteringsnøkkel for print.");
publicKeys = Optional.ofNullable(getEncryptionKeyForPrint());
}
} else if (!message.recipient.hasPrintDetails() && !message.hasAnyDocumentRequiringEncryption()) {
singleChannelMessage = setMapAndMessageToDigipost(message, documentsAndContent, documentsAndInputstream);
