private FirefoxProfile createFireFoxProfile()
    {
        FirefoxProfile profile = null;
        try
        {
            profile = new FirefoxProfile();
            File firebugFile = new File(System.getProperty(TEST_FIREBUG));
            if (firebugFile.exists() && firebugFile.isFile()) {
            	 profile.addExtension(firebugFile);
                 profile.setPreference("extensions.firebug.currentVersion", firebugFile.getName().substring(8, 
                		 firebugFile.getName().lastIndexOf(".")));
                 profile.setPreference("extensions.firebug.console.enableSites", true);
            } else {
            	System.out.println("FIREBUG DOESN'T EXIST ON CONFIGURED PATH!");
            	System.exit(1);
            }
           
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
        return profile;
    }