class ProcessWrapper implements Runnable {

  public ProcessWrapper setCommand(Path _executable, String... _args)
      throws ProcessWrapperException {
    // if(_executable==null || FileUtil.isAccessibleFile(_executable))
    //	throw new ProcessWrapperException("Illegal executable [" + _executable + "]");

    for (int i = 0; i < _args.length; i++) {
      final Matcher m = ALLOWED.matcher(_args[i]);
      if (!m.matches()
          && !FileUtil.isAccessibleFile(_args[i])
          && !FileUtil.isAccessibleDirectory(_args[i]))
        throw new ProcessWrapperException(
            "Illegal characters in argument [" + i + "], allowed are: a-zA-Z_0-9-.=");
    }

    this.exe = _executable;
    this.args = _args;
    return this;
  }

  public  ProcessWrapper();
  public  ProcessWrapper(String _id);

}