updated watermarkdetectorApp.java