Emulate Class.forName and Class#getMethod