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;
}

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 ; }
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 .
