private final NodeIdentifier originatorIdLeaf;
private final NodeIdentifier clusterListContainer;
private final NodeIdentifier clusterListLeaf;
+ private final QName clusterQname;
private final NodeIdentifier asPathContainer;
private final NodeIdentifier asPathSegments;
private final NodeIdentifier asPathChoice;
this.asPathId = new NodeIdentifier(QName.cachedReference(QName.create(namespace, "as")));
this.clusterListContainer = new NodeIdentifier(QName.cachedReference(QName.create(namespace, ClusterId.QNAME.getLocalName())));
- this.clusterListLeaf = new NodeIdentifier(QName.cachedReference(QName.create(namespace, "cluster")));
+ this.clusterQname = QName.cachedReference(QName.create(namespace, "cluster"));
+ this.clusterListLeaf = new NodeIdentifier(this.clusterQname);
this.clusterListPath = ImmutableList.<PathArgument>of(this.clusterListContainer, this.clusterListLeaf);
this.originatorIdContainer = new NodeIdentifier(QName.cachedReference(QName.create(namespace, OriginatorId.QNAME.getLocalName())));
this.originatorIdLeaf = new NodeIdentifier(QName.cachedReference(QName.create(namespace, "originator")));
clb.withNodeIdentifier(this.clusterListLeaf);
// prepend local CLUSTER_ID
- clb.withChild(Builders.leafSetEntryBuilder().withNodeIdentifier(new NodeWithValue(ClusterId.QNAME, clusterId)).withValue(clusterId).build());
+ clb.withChild(Builders.leafSetEntryBuilder().withNodeIdentifier(new NodeWithValue(this.clusterQname, clusterId.getValue())).withValue(clusterId.getValue()).build());
// if there was a CLUSTER_LIST attribute, add all other entries
final Optional<NormalizedNode<?, ?>> maybeClusterList = NormalizedNodes.findNode(attributes, this.clusterListPath);