Where does query builder and search response code write in java?

here is the link i describe my problem.

Kindly go to the link & see the description.

I'm afraid I don't understand the question you linked to, can you try to repeat again what you are trying to do here in a new thread instead of changing the subject of the existing one?