String home = System.getProperty("exist.home");   File propFile; if (home == null) propFile = new File("client.properties"); else propFile = new File(home + System.getProperty("file.separator", "/") + "client.properties");
File propFile = Configuration.lookup("client.properties");
    private Properties loadClientProperties(){                Properties clientProps = new Properties();                        String home = System.getProperty("exist.home");                        File propFile;        if (home == null)            propFile = new File("client.properties");        else            propFile = new File(home                    + System.getProperty("file.separator", "/")                    + "client.properties");                InputStream pin = null;                // Try to load from file        try{            pin = new FileInputStream(propFile);        } catch (FileNotFoundException ex) {            // File not found, no exception handling        }                if(pin == null){            // Try to load via classloader            pin = InteractiveClient.class                    .getResourceAsStream("client.properties");        }                if (pin != null){                        // Try to load properties from stream            try{                clientProps.load(pin);            } catch (IOException ex) {                //            }        }                return clientProps;    }