[java] Return a ws scheme instead of the http scheme of the grid
@@ -461,7 +461,7 @@ private Session createExternalSession(ActiveSession other, URI externalUri, bool
private URI rewrite(String path) {
try {
return new URI(
- gridUri.getScheme(),
+ "ws",
gridUri.getUserInfo(),
gridUri.getHost(),
gridUri.getPort(),
