In my particular case, following the article linked below, I was able to implement the same functionality in an End Point WSEXIT automation script and we no longer need to keep or maintain the original custom Java extension! For the WSEXIT property, I configured it with the following value:
script:MYSCRIPTNAME
EndPoint Scripting - Web Service Handler (JAX-WS) WSEXIT Property
I hope this help somebody!