@Override
  public WebViewBridge loadWebViewBridge(Fragment fragment, View inflatedView) {
    Class<?> clazz = fragment.getClass();
    LayoutConfig config = createLayoutConfig(clazz);

    WebViewBridge webViewBridge =
        (WebViewBridge) inflatedView.findViewById(config.getWebViewBridgeId());
    webViewBridge.setDomainConfig(createDomainConfig(clazz));
    webViewBridge.setNoPause(hasNoPause(clazz));

    return webViewBridge;
  }
  @Override
  public WebViewBridge loadWebViewBridge(Activity activity) {
    Class<?> clazz = activity.getClass();
    LayoutConfig config = createLayoutConfig(clazz);

    activity.setContentView(config.getLayoutId());
    WebViewBridge webViewBridge =
        (WebViewBridge) activity.findViewById(config.getWebViewBridgeId());
    webViewBridge.setDomainConfig(createDomainConfig(clazz));
    webViewBridge.setNoPause(hasNoPause(clazz));

    return webViewBridge;
  }