- Resource res = null;
- try {
- res = createResource(CONFIG_FILE, Resource.NORMAL);
- } catch (Exception e) {
- log.warning("Invalid appbase '" + _vappbase + "'.", e);
- }
- if (res == null) {
- try {
- String backupConfig = BACKUP_CONFIG_DIR + File.separator + CONFIG_FILE;
- log.warning("Could not read config '"+CONFIG_FILE+"'. Attempting to use backup '"+backupConfig+"'");
- res = createResource(backupConfig, Resource.NORMAL);
- } catch (Exception ex) {
- throw new RuntimeException("Invalid appbase in backup config'" + _vappbase + "'.", ex);
- }
- }
- return res;
+ try {
+ return createResource(CONFIG_FILE, Resource.NORMAL);
+ } catch (Exception e) {
+ throw new RuntimeException("Invalid appbase '" + _vappbase + "'.", e);
+ }