public void putVersion(String packageKey, String version) {
if (packageKey == null) {
throw new IllegalArgumentException("packageKey cannot be null");
}
ReadLock lock = dataLock.readLock();
lock.lock();
try {
checkLoaded();
data.setVersion(packageKey, version);
} finally {
lock.unlock();
}
}