code: public static Class lookupClass(String pClassName) throws ClassNotFoundException {
          try {
              return Class.forName(pClassName);
          } catch (ClassNotFoundException exp) {
              return lookupInToolsJar(pClassName);
          }
      }
docs: Lookup a class and return its definition. This is first tried by the current classloader (which
  has loaded this class) and if this fails by searching for a tools.jar in various places.
  
  @param pClassName class name to lookup
  @return the found class
  @throws ClassNotFoundException if no class could be found