in src/main/java/org/apache/sling/discovery/commons/providers/DefaultInstanceDescription.java [56:74]
public DefaultInstanceDescription(final DefaultClusterView clusterView,
final boolean isLeader, final boolean isOwn, final String slingId,
final Map<String, String> properties) {
// slingId must not be null - clusterView and properties can be null though
if (slingId == null || slingId.length() == 0) {
throw new IllegalArgumentException("slingId must not be null");
}
this.isLeader = isLeader;
this.isLocal = isOwn;
this.slingId = slingId;
this.properties = filterValidProperties(properties);
if (clusterView != null) {
clusterView.addInstanceDescription(this);
if (this.clusterView == null) {
throw new IllegalStateException(
"clusterView should have been set by now");
}
}
}