Esempio n. 1
0
  protected Branch addBranch(URI uri) {
    if (_tx.isCompleted()) throw new IllegalStateException("transaction completed");

    Branch branch = addTarget(uri);
    if (branch != null) {
      branch.setRecurse(getRecurse());
      branch.setRecordRoute(getRecordRoute());
      branch.setAddToPath(getAddToPath());
      branch.setProxyBranchTimeout(getProxyTimeout());

      _branches = LazyList.add(_branches, branch);
    }
    return branch;
  }