public static String toInternalName(String className){
  return className.replace('.','/');
}

public static String toInternalName ( String className ) { return className . replace ( '.' , '/' ) ; }
converts a class name from the java language naming convention ( foo . bar . baz ) to the jvm internal naming convention ( foo / bar / baz ) .
