public static boolean classExists(String name){
  Object c=classes.get(name);
  if (c == null) {
    try {
      c=Class.forName(name);
    }
 catch (    ClassNotFoundException e) {
    }
    if (c != null)     classes.put(c,"unused");
  }
  return c != null;
}

public static boolean classExists ( String name ) { Object c = classes . get ( name ) ; if ( c == null ) { try { c = Class . forName ( name ) ; } catch ( ClassNotFoundException e ) { } if ( c != null ) classes . put ( c , "unused" ) ; } return c != null ; }
use direct class . forname ( ) to test for the existence of a class . we should not use bshclassmanager here because : a ) the systems using these tests would probably not load the classes through it anyway . b ) bshclassmanager is heavy and touches other class files . this capabilities code must be light enough to be used by any system * * including the remote applet * * .
