* @return The String name of the DataRegistry default config dir
*/
private static boolean setUpDefaultFolders() {
boolean defaultsOK = false;
Configuration conf = ServiceConfig.getConfiguration("DataRegistry");
try {
DataRegistryImpl.defaultDomDirName = conf.getString(DataRegistryImpl.DEFAULT_CONFIG_KEY);
// If it's a directory we're OK
if (new File(DataRegistryImpl.defaultDomDirName).isDirectory())
defaultsOK = true;
// If it's not a directory, once again not terminal, but erase the name
else
DataRegistryImpl.defaultDomDirName = null;
} catch (NoSuchElementException e) {
// No default directory found, unusual, so should log as severe but not a show stopper
DataRegistryImpl.log.severe("Config file for DataRegistry didn't contain a " + DataRegistryImpl.DEFAULT_CONFIG_KEY + " property.");
}
try {
DataRegistryImpl.userDomDirName = conf.getString(DataRegistryImpl.USER_CONFIG_KEY);
// If it's a directory we're OK
if (new File(DataRegistryImpl.userDomDirName).isDirectory())
defaultsOK = true;
// If it's not a directory, once again not terminal, but erase the name