I am not sure I agree with that. `resetClient` is about re-setting a singleton `ws.clientHolder` which is being kept around for backward compatibility, but which should not really be needed, when you allow users to have more than one client. So the `resetClient` is all about resetting that `ws.clientHolder` . the `newClient` is just a method to construct  a new Client and in this particular case to create a NingBased one. I can imagine saving my clients in a hash map, one per identity I need to use on the web.