private function createCommandDefinition($id, $connectionId, $class, $serverName, $command)
    {
        $commandDefinition = new DefinitionDecorator($id);
        $commandDefinition->setClass($class);
        $commandDefinition->setLazy(true);
        $commandDefinition->replaceArgument(0, new Reference($connectionId));
        $commandDefinition->addTag('nanbando.server_command', ['server' => $serverName, 'command' => $command]);

        return $commandDefinition;
    }