+
+ @Override
+ public GetGroupDescriptionOutput buildTxCapableResult(TransactionId emulatedTxId) {
+ return new GetGroupDescriptionOutputBuilder().setTransactionId(emulatedTxId).build();
+ }
+
+ @Override
+ public GroupDescStatsUpdated transformToNotification(List<MultipartReply> result, TransactionId emulatedTxId) {
+ GroupDescStatsUpdatedBuilder notification = new GroupDescStatsUpdatedBuilder();
+ notification.setId(getDeviceInfo().getNodeId());
+ notification.setMoreReplies(Boolean.FALSE);
+ notification.setTransactionId(emulatedTxId);
+
+ notification.setGroupDescStats(new ArrayList<GroupDescStats>());
+ for (MultipartReply mpReply : result) {
+ MultipartReplyGroupDescCase caseBody = (MultipartReplyGroupDescCase) mpReply.getMultipartReplyBody();
+ MultipartReplyGroupDesc replyBody = caseBody.getMultipartReplyGroupDesc();
+ notification.getGroupDescStats().addAll(
+ groupStatsResponseConvertor.toSALGroupDescStatsList(replyBody.getGroupDesc(), getOfVersion()));
+ }
+
+ return notification.build();
+ }