public static Class<?> resolveClassName(String className,
			ClassLoader classLoader) throws IllegalArgumentException {
		try {
			return forName(className, classLoader);
		} catch (ClassNotFoundException ex) {
			throw new IllegalArgumentException("Cannot find class ["
					+ className + "]", ex);
		} catch (LinkageError ex) {
			throw new IllegalArgumentException("Error loading class ["
					+ className
					+ "]: problem with class file or dependent class.", ex);
		}
	}