[Java] Refactoring and web socket client builder