protected function doExcute(array $command = array())
    {

        try {
            // prepare the application's lookup name with the first argument, which has to be the application name
            $lookupName = sprintf('php:global/combined-appserver/%s/ApplicationInterface', array_shift($command));

            // try to load the application
            /** \AppserverIo\Psr\Application\ApplicationInterface $application */
            $application = $this->getNamingDirectory()->search($lookupName);

            // try to load the application's console manager and execute the command
            /** @var \AppserverIo\Appserver\Console\ConsoleContextInterface $consoleManager */
            $consoleManager = $application->search(ConsoleContextInterface::IDENTIFIER);
            $consoleManager->execute($this->connection, $command);

        } catch (\Exception $e) {
            // log the exception
            $this->getSystemLogger()->error($e->__toString());
            // write the error message to the output
            $this->write("{$e->__toString()}ERROR\n");
        }
    }