コード例 #1
0
  protected Node getLeafNode(ArtifactContext context) {
    final Node node = getFromAllRoots(context, true);
    if (node == null) {
      if (context.isThrowErrorIfMissing())
        throw new IllegalArgumentException("No such artifact: " + context);
      return null;
    }

    // save the context info
    context.toNode(node);

    return node;
  }