code: @Override
      @SuppressWarnings("PMD.SystemPrintln")
      int execute(OptionsAndArgs pOptions, Object pVm, VirtualMachineHandler pHandler)
              throws InvocationTargetException, NoSuchMethodException, IllegalAccessException {
          String agentUrl = checkAgentUrl(pVm);
          boolean quiet = pOptions.isQuiet();
          if (agentUrl != null) {
              if (!quiet) {
                  System.out.println("Jolokia started for " + getProcessDescription(pOptions,pHandler));
                  System.out.println(agentUrl);
              }
              return 0;
          } else {
              if (!quiet) {
                  System.out.println("No Jolokia agent attached to " + getProcessDescription(pOptions,pHandler));
              }
              return 1;
          }
      }
docs: Checkt the status and print it out (except for <code>--quiet</code>
  @param pVm the virtual machine
  @return the exit code (0: agent is attached, 1: agent is not attached.)