class ConfigurationFactoryImpl implements ConfigurationFactory {

    @Override
    public ConfigGroup newConfigGroup(final ConfigType type,
                                      final String name,
                                      final String description) {
        if (type.hasNamespace()) {
            throw new RuntimeException("The ConfigType " + type.toString() + " requires a namespace.");
        }

        final ConfigGroup configGroup = new ConfigGroup();
        configGroup.setDescription(description);
        configGroup.setName(name);
        configGroup.setType(type);
        configGroup.setEnabled(true);
        return configGroup;
    }

    public  ConfigurationFactoryImpl();
    @Inject public  ConfigurationFactoryImpl(final PasswordService secureService);

}