private static String trimPackageName(String packageName){
  int index=packageName.lastIndexOf('.');
  if (index > 0) {
    return packageName.substring(0,index);
  }
 else {
    return "<unknown>";
  }
}

private static String trimPackageName ( String packageName ) { int index = packageName . lastIndexOf ( '.' ) ; if ( index > 0 ) { return packageName . substring ( 0 , index ) ; } else { return "<unknown>" ; } }
" fixes " the given package name . ( used to parse the version - tag )
