question: 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 ; }
target:  Fixes the classname, turns "/" and "\" into "." and removes ".class".