code: public static Class<?> getClass(String className) {
      try {
        return PigContext.resolveClassName(className);
      } catch (IOException e) {
        throw new RuntimeException("Could not instantiate " + className, e);
      }
    }
docs: Returns class using Pig's class loader.