Client client = node.client();
if (! (client instanceof NodeClient) ) {
throw new RuntimeException("Unable to create node client: the returned node isn't a NodeClient!");
}
NodeClient nodeClient = (NodeClient) client;
AbstractClient<NodeClient, JsonInput, JsonOutput> shellClient = this.clientWrapper.wrapEsLocalNodeClient(nodeClient);
resourceRegistry.registerResource(shellClient);
ShellNativeClient shellNativeClient = clientWrapper.wrapShellClient(shellClient);