private String parseRepositoryName() throws MalformedURLException {

		String path = url.getPath();

		// Divide path into pieces
		if (StringUtils.isBlank(path) || path.length() < 2 || path.charAt(0) != '/') {
			return null; // content corresponds to RepositoryServerAdapter
		}

		// Isolate repository name
		path = path.substring(1);

		int index = path.indexOf(FileSystem.SEPARATOR);
		if (index >= 0) {
			path = path.substring(0, index);
		}

		if (path.length() == 0) {
			throw new MalformedURLException("invalid path specification");
		}

		return path;
	}
Parse repository name from URL
@return repository name or null if not specified
@throws MalformedURLException if URL is invalid
Ghidra/Framework/Project/src/main/java/ghidra/framework/protocol/ghidra/GhidraProtocolConnector.java