private static SootClass getExceptionalUnitGraph(String className, SootClassLoader loader) {
    System.out.println("class name: " + className);

    try {
      loader.process();
    } catch (Exception e) {
      e.printStackTrace();
    }
    return loader.getSootClass(className);
  }
 private static SootClass getExceptionalUnitGraph(String className) {
   instantiateProject();
   SootClassLoader loader = SootClassLoader.instance();
   try {
     loader.process();
   } catch (Exception e) {
     e.printStackTrace();
   }
   return loader.getSootClass(className);
 }
  public static void instantiateProject() {
    IJavaProject project = null;
    try {
      ProjectNameDialog dialog = new ProjectNameDialog(Display.getDefault().getActiveShell());
      project = dialog.getProject();
    } catch (Exception e) {
      Activator.log(Status.ERROR, e.getMessage(), e);
    }

    if (project == null) {
      // this.parentView.showMessage(Activator.PLUGIN_ID,
      // "JavaProject cannot be selected.");
      return;
    }

    SootClassLoader.reset();
    Activator.setIJavaProject(project);
  }