* @param selenium where should be registered the given request type guard
* @param requestExpected the request type to be guarded
* @return the selenium guarded to use XMLHttpRequest
*/
public static GrapheneSelenium guardInterlayed(GrapheneSelenium selenium, RequestType requestExpected) {
GrapheneSelenium copy = selenium.clone();
copy.getCommandInterceptionProxy().unregisterInterceptorType(RequestGuardInterceptor.class);
copy.getCommandInterceptionProxy().registerInterceptor(new RequestGuardInterceptor(requestExpected, true));
return copy;
}