You might need to play around with the selector. Unfortunately I don’t have access to the java application that would still allow me to provide you with an example
Edit.
I found an older thread that might help you It has a sample java app provided by the user