class MraidActivity extends BaseInterstitialActivity {

    public static void preRenderHtml(@NonNull final Context context,
            @NonNull final CustomEventInterstitialListener customEventInterstitialListener,
            @NonNull final String htmlData) {
        BaseWebView dummyWebView = new BaseWebView(context);

        dummyWebView.enablePlugins(false);
        dummyWebView.setWebViewClient(new WebViewClient() {
            @Override
            public void onPageFinished(final WebView view, final String url) {
                customEventInterstitialListener.onInterstitialLoaded();
            }

            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                return true;
            }

        });

        dummyWebView.loadDataWithBaseURL(null, htmlData, "text/html", "UTF-8", null);
    }

}