protected static Class<?> loadClass(Resource root, String className) { try { return Class.forName(className); } catch (ClassNotFoundException e) { throw new CannotLoadClassException(root, className, e); } }