protected String cleanUp(String classname){
  String result;
  result=classname;
  if (result.indexOf("/") > -1) {
    result=result.replace("/",".");
  }
  if (result.indexOf("\\") > -1) {
    result=result.replace("\\",".");
  }
  if (result.endsWith(".class")) {
    result=result.substring(0,result.length() - 6);
  }
  return result;
}

protected String cleanUp ( String classname ) { String result ; result = classname ; if ( result . indexOf ( "/" ) > - 1 ) { result = result . replace ( "/" , "." ) ; } if ( result . indexOf ( "\\" ) > - 1 ) { result = result . replace ( "\\" , "." ) ; } if ( result . endsWith ( ".class" ) ) { result = result . substring ( 0 , result . length ( ) - 6 ) ; } return result ; }
fixes the classname , turns " / " and " \ " into " . " and removes " . class " .
