static String generateNodeName(final String hostName,final String hostPort,final String hostContext){
  try {
    return hostName + ':' + hostPort+ '_'+ URLEncoder.encode(trimLeadingAndTrailingSlashes(hostContext),"UTF-8");
  }
 catch (  UnsupportedEncodingException e) {
    throw new Error("JVM Does not seem to support UTF-8",e);
  }
}

static String generateNodeName ( final String hostName , final String hostPort , final String hostContext ) { try { return hostName + ':' + hostPort + '_' + URLEncoder . encode ( trimLeadingAndTrailingSlashes ( hostContext ) , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { throw new Error ( "JVM Does not seem to support UTF-8" , e ) ; } }
returns the nodename that should be used based on the specified properties .
