private void loadContent() throws IOException {
			// Validate state
			if (!workspaceManager.hasCurrentWorkspace())
				throw new IOException("No workspace currently open!");

			// Transform path
			String path = getURL().getPath();
			if (path.charAt(0) == '/')
				path = path.substring(1);
			path = URLDecoder.decode(path, StandardCharsets.UTF_8);

			// Handle protocol implementations
			Workspace workspace = workspaceManager.getCurrent();
			String protocol = getURL().getProtocol();
			switch (protocol) {
				case recafClass:
					ClassPathNode classPath = workspace.findClass(path);
					if (classPath == null)
						throw new IOException("No class in current workspace: " + path);
					ClassInfo classInfo = classPath.getValue();
					content = classInfo.asJvmClass().getBytecode();
					break;
				case recafFile:
					FilePathNode filePath = workspace.findFile(path);
					if (filePath == null)
						throw new IOException("No file in current workspace: " + path);
					FileInfo fileInfo = filePath.getValue();
					content = fileInfo.getRawContent();
					break;
				default:
					throw new IOException("Unknown protocol: " + protocol);
			}
		}
Connection impl to actually pull from the current workspace.
recaf-ui/src/main/java/software/coley/recaf/util/RecafURLStreamHandlerProvider.java