class FileBasedStubConfigReader {

    public void readStubConfiguration() {
        getJsonDescriptorPath();
        stubConfigSchema.setSchema(stubConfigSchemaParser.parseSchema());
        List<String> stubConfigPaths = cachePathProvider.getConfigPathsFromCache(jsonDescriptorsCachePath);
        if (!stubConfigPaths.isEmpty()) {
            stubDescriptorReader.loadSpecificStubDescriptors(stubConfigPaths);
        } else {
            stubConfigPaths = cachePathProvider.getConfigPathsFromSpecificFolder(jsonDescriptorsSourceFolderPath, jsonDescriptorsPattern);
            stubDescriptorReader.loadSpecificStubDescriptors(stubConfigPaths);
        }
    }

}