class ConfigGroupsMigrationService {

    public void groupSystemConfigGroups() {
        try {
            startBatch();
            system.out().println("Moving existing configurations to their type directories...");
            groupConfigGroupsByType();
            system.out().println("Moving existing repositories configurations to their space directories...");
            groupRepositoryConfigGroupsBySpace();
        } finally {
            endBatch();
        }
    }

    public  ConfigGroupsMigrationService();
    @Inject public  ConfigGroupsMigrationService(final @Named("system") Repository systemRepository,
                                        final ConfigGroupMarshaller marshaller,
                                        final @Named("configIO") IOService ioService,
                                        final @Named("systemFS") FileSystem fs,
                                        final SystemAccess system,
                                        final User identity);

}