I got the following code The idea is that I make a call to another client for some information, wait for his response, and then present the data that has been received and processed. But i am looking for a way to avoid the need for Thread.sleep to avoid possible issues with other code in the system. Is there another