Issue in adding custom tag with attribute in xmpp message stanza using asmack PacketExtension

In my chat Application I want to delete message from both sender-receiver side,

for that I send acknowledgement through add replace tag with id attribute

sender side,

Message Removed

Receiver side,

Message Removed

You’re not applying XEP-0308 right. To replace the content from an earlier message, you will need to refer to the ID from first message:

User sends a message with a mistake in

<message to='juliet@capulet.net/balcony' id='bad1'>
  <body>But soft, what light through yonder airlock breaks?</body>
</message>

User corrects the message and sends

<message to='juliet@capulet.net/balcony' id='good1'>
  <body>But soft, what light through yonder window breaks?</body>
  <replace id='bad1' xmlns='urn:xmpp:message-correct:0'/>
</message>

Closing in favor of Issue in adding custom tag with attribute in xmpp message stanza using asmack PacketExtension