public SubCommandHandlerFactory(SubCommandArgumentParser parser) throws ArgumentException {
  this.parser=parser;
  helpHandler=HelpSubCommandHandler.create(parser);
  processPath(ManagedObjectPath.emptyPath());
  allHandlers.add(helpHandler);
  allHandlers.addAll(createHandlers);
  allHandlers.addAll(deleteHandlers);
  allHandlers.addAll(listHandlers);
  allHandlers.addAll(getPropHandlers);
  allHandlers.addAll(setPropHandlers);
  if (exception != null) {
    throw exception;
  }
}

public SubCommandHandlerFactory ( SubCommandArgumentParser parser ) throws ArgumentException { this . parser = parser ; helpHandler = HelpSubCommandHandler . create ( parser ) ; processPath ( ManagedObjectPath . emptyPath ( ) ) ; allHandlers . add ( helpHandler ) ; allHandlers . addAll ( createHandlers ) ; allHandlers . addAll ( deleteHandlers ) ; allHandlers . addAll ( listHandlers ) ; allHandlers . addAll ( getPropHandlers ) ; allHandlers . addAll ( setPropHandlers ) ; if ( exception != null ) { throw exception ; } }
create a new sub - command builder .
