I'm afraid that I can't agree this method.
The typical way is to add one interface in XWalkRuntimeViewProviderBase and implement it in XWalkCoreProviderImpl. Don't use reflection in one package.