code: public static Class<?> classForName(String className, ClassLoader classLoader)
      {
          try
          {
              Class<?> c = null;
              try
              {
                  c = Class.forName(className, true, ReflectUtils.class.getClassLoader());
              }
              catch (ClassNotFoundException e)
              {
                  try
                  {
                      c = Class.forName(className);
                  }
                  catch (ClassNotFoundException e1)
                  {
                      if (classLoader == null)
                      {
                          throw e1;
                      }
                      else
                      {
                          c = classLoader.loadClass(className);
                      }
                  }
              }
              return c;
          }
          catch (ClassNotFoundException e)
          {
              throw new KunderaException(e);
          }
      }
docs: Loads class with className using classLoader.
  
  @param className
  the class name
  @param classLoader
  the class loader
  @return the class