log.fine("got first response");
Response resp = r.getResponse();
ServerSideSession session = getDriver().getSession(resp.getSessionId());
session.setCapabilityCachedResponse(resp);
//GetCapabilitiesNHandler.setCachedResponse(resp);
RemoteIOSNativeDriver
nativeDriver =
getDriver().getSession(resp.getSessionId()).getDualDriver().getNativeDriver();
nativeDriver.communication().registerUIAScript();
} else {
getCommunicationChannel(request).addResponse(r);
}
UIAScriptRequest nextCommand = getCommunicationChannel(request).getNextCommand();