Loading class file, generating interface and patch methodref