logger.log(Level.SEVERE, "Could not load config file ''{0}''! Creating a new one.", configFile);
// File not found, so create a default file
config = new Configuration();
config.setLogLevel(Level.OFF);
Domain domain = new Domain();
domain.setServerRootPath("/Applications/Netbeans/glassfish-3.1.2.2");
domain.setUrl("localhost:4848");
domain.setDomainName("domain1");
domain.setServerType(ServerType.GLASSFISH);
domain.setDomainUser("admin");
domain.setDomainPassword("");
domain.setSsl(false);
domain.setTemplate("");
List<Domain> domains = config.getDomains();
domains.add(domain);
UIConfiguration uic = new UIConfiguration();
uic.createDefaultConfig();