192193194195196197198199200201202
final URI url = genUrl(agentId); socket.getSocket().bind(url.toString()); socket.setAgentUrl(url); socket.setAgentId(agentId); socket.setHost(host); socket.listen(); } } catch (final Exception e) { LOG.log(Level.SEVERE, "Caught error:", e); } }