if(!configId.isResolved()) {
throw new IllegalArgumentException("Artifact "+configId+" is not fully resolved");
}
File dir = repository.getLocation(configId);
if (dir == null) {
throw new NoSuchConfigException(configId);
}
if (existsReadable(dir)) {
throw new IOException("Cannot read config store directory for " + configId + " (" + dir.getAbsolutePath() + ")");
}
ZipOutputStream out = new ZipOutputStream(output);