private String getConfigPath(final BootstrapConfiguration bootstrap) throws ConfigurationException { String ret; if (bootstrap.isConfigurationPresent(CONFIG_PATH)) { ret = bootstrap.getConfiguration(CONFIG_PATH); } else if (bootstrap.isConfigurationPresent(OLD_CONFIG_PATH)) { ret = bootstrap.getConfiguration(OLD_CONFIG_PATH); } else { throw new ConfigurationException("Configuration parameter " + CONFIG_PATH + " not present"); } return ret; } }