class BackwardCompatibleUtil {

    @Deprecated
    public ConfigGroup compat(final ConfigGroup configGroup) {
        if (configGroup != null) {
            final ConfigItem<List<String>> roles = configGroup.getConfigItem("security:roles");
            if (roles != null) {
                configGroup.addConfigItem(configurationFactory.newConfigItem("security:groups",
                                                                             new ArrayList<String>(roles.getValue())));
                configGroup.removeConfigItem("security:roles");
            }
            final ConfigItem<List<String>> groups = configGroup.getConfigItem("security:groups");
            if (groups == null) {
                configGroup.addConfigItem(configurationFactory.newConfigItem("security:groups",
                                                                             new ArrayList<String>()));
            }
        }
        return configGroup;
    }

    public  BackwardCompatibleUtil();
    @Inject public  BackwardCompatibleUtil(ConfigurationFactory configurationFactory);

}