void () { if (myDate != null) { myPatchDetailsPresentationMap.put(MqPatchEnum.Date, DateFormatUtil.formatDateTime(myDate)); } myPatchDetailsPresentationMap.put(MqPatchEnum.Author, myUser); myPatchDetailsPresentationMap.put(MqPatchEnum.Branch, myBranch); if (myMessage != null) { myPatchDetailsPresentationMap.put(MqPatchEnum.Subject, HgBaseLogParser.extractSubject(myMessage)); } }