private void registerNewClient(JsonObject jData){
  Client newClient=gson.fromJson(jData,Client.class);
  if (newClient.isValid()) {
    addClient(newClient);
    broadcastNewClient(newClient);
    sendClientList(newClient);
  }
 else {
    logger.log(Level.WARNING,"Could not unpack received data into a Client.");
  }
}

private void registerNewClient ( JsonObject jData ) { Client newClient = gson . fromJson ( jData , Client . class ) ; if ( newClient . isValid ( ) ) { addClient ( newClient ) ; broadcastNewClient ( newClient ) ; sendClientList ( newClient ) ; } else { logger . log ( Level . WARNING , "Could not unpack received data into a Client." ) ; } }
create client from given json data , add client to client list , broadcast newly registered client to all previously registered clients and send client list to new client .
