log.entering("Main", "processArgs", args);
log.entering(this.getClass().getName(), "processArgs", args);
  private void processArgs(String[] args) throws Exception  {    log.entering("Main", "processArgs", args);    HelpPrinter.checkHelpKey(args, HELP_PATH);    if (args == null || args.length == 0)      HelpPrinter.printHelpAndExit(HELP_PATH);    int limit = args.length;    log.finest("args.length=" + limit);    int i = 0;    String opt;    while (i < limit)      {        opt = args[i++];        log.finest("args[" + (i - 1) + "]=" + opt);        if (opt == null || opt.length() == 0)          continue;        if ("-verify".equals(opt)) // -verify          verify = true;        else if ("-keystore".equals(opt)) // -keystore URL          ksURL = args[i++];        else if ("-storetype".equals(opt)) // -storetype STORE_TYPE          ksType = args[i++];        else if ("-storepass".equals(opt)) // -storepass PASSWORD          ksPassword = args[i++];        else if ("-keypass".equals(opt)) // -keypass PASSWORD          password = args[i++];        else if ("-sigfile".equals(opt)) // -sigfile NAME          sigFileName = args[i++];        else if ("-signedjar".equals(opt)) // -signedjar FILE_NAME          signedJarFileName = args[i++];        else if ("-verbose".equals(opt)) // -verbose          verbose = true;        else if ("-certs".equals(opt)) // -certs          certs = true;        else if ("-internalsf".equals(opt)) // -internalsf          internalSF = true;        else if ("-sectionsonly".equals(opt)) // -sectionsonly          sectionsOnly = true;        else if ("-provider".equals(opt)) // -provider PROVIDER_CLASS_NAME          providerClassName = args[i++];        else          {            jarFileName = opt;            if (! verify)              alias = args[i++];            break;          }      }    if (i < limit) // more options than needed      log.warning("Last argument is assumed at index #" + (i - 1)                  + ". Remaining arguments (" + args[i]                  + "...) will be ignored");    setupCommonParams();    if (verify)      {        log.info("Will verify with the following parameters:");        log.info("     jar-file = '" + jarFileName + "'");        log.info("Options:");        log.info("     provider = '" + providerClassName + "'");        log.info("      verbose ? " + verbose);        log.info("        certs ? " + certs);        log.info("   internalsf ? " + internalSF);        log.info(" sectionsonly ? " + sectionsOnly);      }    else // sign      {        setupSigningParams();        log.info("Will sign with the following parameters:");        log.info("     jar-file = '" + jarFileName + "'");        log.info("        alias = '" + alias + "'");        log.info("Options:");        log.info("     keystore = '" + ksURL + "'");        log.info("    storetype = '" + ksType + "'");        log.info("    storepass = '" + ksPassword + "'");        log.info("      keypass = '" + password + "'");        log.info("      sigfile = '" + sigFileName + "'");        log.info("    signedjar = '" + signedJarFileName + "'");        log.info("     provider = '" + providerClassName + "'");        log.info("      verbose ? " + verbose);        log.info("   internalsf ? " + internalSF);        log.info(" sectionsonly ? " + sectionsOnly);      }    log.exiting("Main", "processArgs");  }