code: public void execute() throws MojoExecutionException, MojoFailureException
     {
        try
        {
           if (isLocal())
           {
              if (!isCommandAvailable("local-list"))
                 throw new MojoFailureException("Unable to ping " + getHost() + ":" + getPort());
           }
           else
           {
              if (!isCommandAvailable("remote-list"))
                 throw new MojoFailureException("Unable to ping " + getHost() + ":" + getPort());
           }
        }
        catch (Throwable t)
        {
           throw new MojoFailureException("Unable to ping " + getHost() + ":" + getPort() +
                                          " (" + t.getMessage() + ")", t);
        }
     }
docs: {@inheritDoc}