Could someone help me with the code/program for how to set the periodicity to "Detect Automatically" in Java, similar to the functionality in the GUI? Thanks in advance.