protected static void createConfigFileIfNotExists(GatfConfigToolMojo mojo, boolean isExecutor, Object config)
	{
		if(isExecutor && !new File(mojo.rootDir, "gatf-config.xml").exists()) {
			try {
				new File(mojo.rootDir, "gatf-config.xml").createNewFile();
				GatfExecutorConfig gatfConfig = config==null?new GatfExecutorConfig():(GatfExecutorConfig)config;
				sanitizeAndSaveGatfConfig(gatfConfig, mojo, false);
			} catch (IOException e) {
			}
        }
		else if(!isExecutor && !new File(mojo.rootDir, "gatf-generator.xml").exists()) {
			try {
				new File(mojo.rootDir, "gatf-generator.xml").createNewFile();
				GatfConfiguration gatfConfig = config==null?new GatfConfiguration():(GatfConfiguration)config;

				FileUtils.writeStringToFile(new File(mojo.rootDir, "gatf-generator.xml"), 
						GatfTestGeneratorMojo.getConfigStr(gatfConfig));
			
			} catch (IOException e) {
			}
        }
	}