getLog().fatal("Can't load configuration", e);
fatal("Can't load configuration", e);
    public static void loadConfig(String configFile)    {        InputStream is;        if (properties != null)        {            return;        }        String configProperty = System.getProperty("dspace.configuration");        try        {            if (configFile != null)            {                is = new FileInputStream(configFile);                loadedFile = new File(configFile);            }            // Has the default configuration location been overridden?            else if (configProperty != null)            {                // Load the overriding configuration                is = new FileInputStream(configProperty);                loadedFile = new File(configProperty);            }            else            {                // Load configuration from default location                is = ConfigurationManager.class                        .getResourceAsStream("/dspace.cfg");                loadedFile = new File(ConfigurationManager.class                        .getResource("/dspace.cfg").getPath());            }            if (is == null)            {                getLog().fatal("Cannot find dspace.cfg");                System.exit(1);            }            else            {                properties = new Properties();                properties.load(is);            }            // Load in default license            String licenseFile = getProperty("dspace.dir") + File.separator                    + "config" + File.separator + "default.license";            BufferedReader br = new BufferedReader(new FileReader(licenseFile));            String lineIn;            license = "";            while ((lineIn = br.readLine()) != null)            {                license = license + lineIn + '\n';            }            is.close();        }        catch (IOException e)        {            getLog().fatal("Can't load configuration", e);            // FIXME: Maybe something more graceful here, but with the            // configuration we can't do anything            System.exit(1);        }    }