question: private static File findGuacamoleHome ( ) { File guacHome ; String desiredDir = System . getProperty ( "guacamole.home" ) ; if ( desiredDir == null ) desiredDir = System . getenv ( "GUACAMOLE_HOME" ) ; if ( desiredDir != null ) guacHome = new File ( desiredDir ) ; else guacHome = new File ( System . getProperty ( "user.home" ) , ".guacamole" ) ; return guacHome ; }
target:  Locates the Guacamole home directory by checking, in order: the guacamole.home system property, the GUACAMOLE_HOME environment variable, and finally the .guacamole directory in the home directory of the user running the servlet container.