public static Class<?> resolveClass(String className,boolean optional){
  try {
    ClassLoader cl=ClassLoader.getSystemClassLoader();
    return Class.forName(className,false,cl);
  }
 catch (  ClassNotFoundException e) {
    if (optional) {
      return null;
    }
    throw new GraalError("Could not resolve type " + className);
  }
}

public static Class < ? > resolveClass ( String className , boolean optional ) { try { ClassLoader cl = ClassLoader . getSystemClassLoader ( ) ; return Class . forName ( className , false , cl ) ; } catch ( ClassNotFoundException e ) { if ( optional ) { return null ; } throw new GraalError ( "Could not resolve type " + className ) ; } }
resolves a name to a class .
