public static Object executeCommand(EventExecuteCommandContext context) {
        Optional<SchemaCommand> command = CommandRegistry.getCommand(context.params);

        context.logger.info("Received command: " + context.params.getCommand());

        if (command.isEmpty()) {
            context.logger.error("Unknown command " + context.params.getCommand());
            context.logger.error("Arguments:");
            if (context.params.getArguments() == null) {
                context.logger.error("null");
                return null;
            }

            for (Object obj : context.params.getArguments()) {
                context.logger.info(obj.getClass().toString() + ": " + obj.toString());
            }
            return null;
        }

        Object resultOrNull = command.get().execute(context);
        return resultOrNull;
    }
Responsible for LSP workspace/executeCommand requests.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/lsp/common/command/ExecuteCommand.java