In the following piece of code, I am using Java Consumer and I want to extract the value of the input argument, event to be used elsewhere in my code.