protected void shortenName(final StringBuilder sb,final String longishName){
  int lastDot=longishName.lastIndexOf('.');
  if (lastDot != -1) {
    int lastButOneDot=longishName.lastIndexOf('.',lastDot - 1);
    sb.append(longishName.substring(lastButOneDot + 1));
    return;
  }
  sb.append(longishName);
}

protected void shortenName ( final StringBuilder sb , final String longishName ) { int lastDot = longishName . lastIndexOf ( '.' ) ; if ( lastDot != - 1 ) { int lastButOneDot = longishName . lastIndexOf ( '.' , lastDot - 1 ) ; sb . append ( longishName . substring ( lastButOneDot + 1 ) ) ; return ; } sb . append ( longishName ) ; }
append a name to a string buffer , possibly shortening the name . the current algorithm for name shortening is to take the end of the name after the pen - ultimate ' . ' .
