public void setReadOnly(boolean state) {
		if (connected)
			throw new IllegalStateException("Already connected");
		if (GhidraURL.isLocalProjectURL(url) && !state) {
			// local project write-access not supported due to inadequate cleanup/disposal strategy
			throw new UnsupportedOperationException("write access to local projects not supported");
		}
		readOnly = state;
	}
Set the read-only state for this connection prior to connecting or getting content.  
The default access is read-only.  Extreme care must be taken when setting the state to false 
for local projects without the use of a ProjectLock.
<P>
<B>NOTE:</B> Local project URL connections only support read-only access.
@param state read-only if true, otherwise read-write
@throws UnsupportedOperationException if an attempt is made to enable write access for
a local project URL.
@throws IllegalStateException if already connected
Ghidra/Framework/Project/src/main/java/ghidra/framework/protocol/ghidra/GhidraURLConnection.java