public static String shortName(String longName){
  final String temp=longName.replace(DOLLAR,DOT);
  if (temp.contains(DOT)) {
    return temp.substring(temp.lastIndexOf(DOT) + 1);
  }
 else {
    return temp;
  }
}

public static String shortName ( String longName ) { final String temp = longName . replace ( DOLLAR , DOT ) ; if ( temp . contains ( DOT ) ) { return temp . substring ( temp . lastIndexOf ( DOT ) + 1 ) ; } else { return temp ; } }
returns the ' name ' part of a long name . this is everything after the last dot .
