code: @Override
     public void execute() throws BuildException 
     {
        if (getHome() == null)
           throw new BuildException("Home isn't set");
  
        try 
        {
           ProcessController pc = ProcessController.getInstance();
           int exitCode = pc.stop(getHome());
  
           if (exitCode != 0)
              throw new BuildException("IronJacamar instance exit code: " + exitCode);
  
           log("Stopped IronJacamar instance from: " + getHome());
        }
        catch (BuildException be) 
        {
           throw be;
        }
        catch (Throwable t) 
        {
           throw new BuildException(t.getMessage(), t);
        }
     }
docs: Execute
  @exception BuildException If the build fails