class DefaultModelConfiguration extends AbstractLogEnabled implements ModelConfiguration {

    public String getDefaultReferenceValue(EntityType type)
    {
        String name;
        try {
            // TODO: For the moment we only look in the XWiki properties file since otherwise looking into
            // Wiki, Space and User preferences cause some cyclic dependencies (we'll be able to do that when all
            // code has been migrated to use References instead of Strings).
            ConfigurationSource configuration =
                this.componentManager.lookup(ConfigurationSource.class, "xwikiproperties");
            name = configuration.getProperty(PREFIX + "reference.default." + type.toString().toLowerCase(),
                DEFAULT_VALUES.get(type));
        } catch (ComponentLookupException e) {
            // Failed to load the component, use default values
            getLogger().debug("Failed to load [" + ConfigurationSource.class.getName()
                + "]. Using default Model values", e);
            name = DEFAULT_VALUES.get(type);
        }

        return name;
    }

}