Yes, that's actually the approach I once considered, there may be some drawbacks related to the approach, first, the ProcessSingleton will be dependent upon XWalkBrowsermainParts and as a result there will be a dependency loop. And for another, the processsingleton class is something common, and may be moved to some other places if it's more suitable.