Configuration config = (configuration != null) ? configuration : DefaultConfiguration.INSTANCE;
Configuration config = configuration != null ? configuration : DefaultConfiguration.INSTANCE;
    public Configuration getConfiguration() {        Configuration config = (configuration != null) ? configuration : DefaultConfiguration.INSTANCE;        if (!config.isInitialized()) {            try {                config.load(null);            } catch (FactoryException e) {                log.fatal("Error initialising configuration", e);                //fail fast, better to blow up with an NPE that hide the error                return null;            }        }        return config;    }