if(hostname == null) return;
    private void appendShortName(String hostname, StringBuffer sb) {        int  index=hostname.indexOf('.');        if(hostname == null) return;        if(index > 0 && !Character.isDigit(hostname.charAt(0)))            sb.append(hostname.substring(0, index));        else            sb.append(hostname);    }