@Override
	public void setCheckout(long checkoutId, boolean exclusive, int checkoutVersion,
			int localVersion) throws IOException {
		if (isVersioned) {
			throw new UnsupportedOperationException(
				"setCheckout is not applicable to versioned item");
		}
		if (fileSystem.isReadOnly()) {
			throw new ReadOnlyException();
		}

		synchronized (fileSystem) {
			if (checkoutId <= 0 || checkoutVersion <= 0 || localVersion < 0) {
				throw new IllegalArgumentException("Bad checkout data: " + checkoutId + "," +
					checkoutVersion + "," + localVersion);
			}
			propertyFile.putLong(CHECKOUT_ID, checkoutId);
			propertyFile.putBoolean(EXCLUSIVE_CHECKOUT, exclusive);
			propertyFile.putInt(CHECKOUT_VERSION, checkoutVersion);
			propertyFile.putInt(LOCAL_CHECKOUT_VERSION, localVersion);
			propertyFile.writeState();

			fireItemChanged();
		}
	}
@see ghidra.framework.store.FolderItem#setReadOnly(boolean)
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/local/LocalFolderItem.java