public static String buildNodeName(InetAddress addr){
  String hostname=addr.getHostName();
  if (hostname != null)   return hostname;
  return String.format(Locale.getDefault(),"node%03d%03d%03d%03d",(int)(addr.getAddress()[0] & 0xFF),(int)(addr.getAddress()[1] & 0xFF),(int)(addr.getAddress()[2] & 0xFF),(int)(addr.getAddress()[3] & 0xFF));
}

public static String buildNodeName ( InetAddress addr ) { String hostname = addr . getHostName ( ) ; if ( hostname != null ) return hostname ; return String . format ( Locale . getDefault ( ) , "node%03d%03d%03d%03d" , ( int ) ( addr . getAddress ( ) [ 0 ] & 0xFF ) , ( int ) ( addr . getAddress ( ) [ 1 ] & 0xFF ) , ( int ) ( addr . getAddress ( ) [ 2 ] & 0xFF ) , ( int ) ( addr . getAddress ( ) [ 3 ] & 0xFF ) ) ; }
todo : provide customizable node name factory .
