Source:
<code><START> EventData(Message message) { <END> if (message == null) { throw new IllegalArgumentException("'message' cannot be null"); } final Map<Symbol, Object> messageAnnotations = message.getMessageAnnotations().getValue(); final HashMap<String, Object> receiveProperties = new HashMap<>(); for (Map.Entry<Symbol, Object> annotation : messageAnnotations.entrySet()) { receiveProperties.put(annotation.getKey().toString(), annotation.getValue()); } if (message.getProperties() != null) { addMapEntry(receiveProperties, MessageConstant.MESSAGE_ID, message.getMessageId()); addMapEntry(receiveProperties, MessageConstant.USER_ID, message.getUserId()); addMapEntry(receiveProperties, MessageConstant.TO, message.getAddress()); addMapEntry(receiveProperties, MessageConstant.SUBJECT, message.getSubject()); addMapEntry(receiveProperties, MessageConstant.REPLY_TO, message.getReplyTo()); addMapEntry(receiveProperties, MessageConstant.CORRELATION_ID, message.getCorrelationId()); addMapEntry(receiveProperties, MessageConstant.CONTENT_TYPE, message.getContentType()); addMapEntry(receiveProperties, MessageConstant.CONTENT_ENCODING, message.getContentEncoding()); addMapEntry(receiveProperties, MessageConstant.ABSOLUTE_EXPRITY_TIME, message.getExpiryTime()); addMapEntry(receiveProperties, MessageConstant.CREATION_TIME, message.getCreationTime()); addMapEntry(receiveProperties, MessageConstant.GROUP_ID, message.getGroupId()); addMapEntry(receiveProperties, MessageConstant.GROUP_SEQUENCE, message.getGroupSequence()); addMapEntry(receiveProperties, MessageConstant.REPLY_TO_GROUP_ID, message.getReplyToGroupId()); } this.systemProperties = new SystemProperties(receiveProperties); this.properties = message.getApplicationProperties() == null ? new HashMap<>() : message.getApplicationProperties().getValue(); final Section bodySection = message.getBody(); if (bodySection instanceof Data) { Data bodyData = (Data) bodySection; this.data = bodyData.getValue().asByteBuffer(); } else { this.data = null; } message.clear(); }</code><technical_language>nit: this explicit visibility modifier? elsewhere</technical_language>

Target:
EventData(Message message) { if (message == null) { throw new IllegalArgumentException("'message' cannot be null"); } final Map<Symbol, Object> messageAnnotations = message.getMessageAnnotations().getValue(); final HashMap<String, Object> receiveProperties = new HashMap<>(); for (Map.Entry<Symbol, Object> annotation : messageAnnotations.entrySet()) { receiveProperties.put(annotation.getKey().toString(), annotation.getValue()); } if (message.getProperties() != null) { addMapEntry(receiveProperties, MessageConstant.MESSAGE_ID, message.getMessageId()); addMapEntry(receiveProperties, MessageConstant.USER_ID, message.getUserId()); addMapEntry(receiveProperties, MessageConstant.TO, message.getAddress()); addMapEntry(receiveProperties, MessageConstant.SUBJECT, message.getSubject()); addMapEntry(receiveProperties, MessageConstant.REPLY_TO, message.getReplyTo()); addMapEntry(receiveProperties, MessageConstant.CORRELATION_ID, message.getCorrelationId()); addMapEntry(receiveProperties, MessageConstant.CONTENT_TYPE, message.getContentType()); addMapEntry(receiveProperties, MessageConstant.CONTENT_ENCODING, message.getContentEncoding()); addMapEntry(receiveProperties, MessageConstant.ABSOLUTE_EXPRITY_TIME, message.getExpiryTime()); addMapEntry(receiveProperties, MessageConstant.CREATION_TIME, message.getCreationTime()); addMapEntry(receiveProperties, MessageConstant.GROUP_ID, message.getGroupId()); addMapEntry(receiveProperties, MessageConstant.GROUP_SEQUENCE, message.getGroupSequence()); addMapEntry(receiveProperties, MessageConstant.REPLY_TO_GROUP_ID, message.getReplyToGroupId()); } this.systemProperties = new SystemProperties(receiveProperties); this.properties = message.getApplicationProperties() == null ? new HashMap<>() : message.getApplicationProperties().getValue(); final Section bodySection = message.getBody(); if (bodySection instanceof Data) { Data bodyData = (Data) bodySection; this.body = bodyData.getValue().asByteBuffer(); } else { this.body = null; } message.clear(); }