class StubConfigurationSaver {

    public void saveAllStubConfigurations(final Map<String, StubDescriptor> descriptors) throws JsonTransformationException {
        getCacheFolderPath();
        int index = 1;
        for (String groupname : descriptors.keySet()) {
            StubDescriptor actualDescriptor = descriptors.get(groupname);
            tryToSaveActualStubConfig(actualDescriptor, index, groupname);
            index++;
        }
    }

}