Fixed inefficient new String instantiation
Suppress close resource PMD warnings as we need to keep connection open in WebSocket world